forked from ericc-ch/copilot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.ts
More file actions
32 lines (26 loc) · 696 Bytes
/
state.ts
File metadata and controls
32 lines (26 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { ModelsResponse } from "~/services/copilot/get-models"
export interface State {
hideInternal: boolean
modelFilter?: string
githubToken?: string
copilotToken?: string
accountType: string
models?: ModelsResponse
vsCodeVersion?: string
manualApprove: boolean
rateLimitWait: boolean
showToken: boolean
// 1M context window flag (derived from ANTHROPIC_MODEL env var)
is1MContext: boolean
// Rate limiting configuration
rateLimitSeconds?: number
lastRequestTimestamp?: number
}
export const state: State = {
hideInternal: false,
accountType: "individual",
manualApprove: false,
is1MContext: false,
rateLimitWait: false,
showToken: false,
}