forked from ericc-ch/copilot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
32 lines (28 loc) · 724 Bytes
/
constants.ts
File metadata and controls
32 lines (28 loc) · 724 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
// VSCode client ID
const GITHUB_CLIENT_ID = "01ab8ac9400c4e429b23"
const GITHUB_OAUTH_SCOPES = [
"read:org",
"read:user",
"repo",
"user:email",
"workflow",
].join(" ")
export const ENV = {
GITHUB_CLIENT_ID,
GITHUB_OAUTH_SCOPES,
}
export const COPILOT_API_CONFIG = {
baseURL: "https://api.individual.githubcopilot.com",
headers: {
"copilot-integration-id": "vscode-chat",
"copilot-vision-request": "true",
"editor-version": "vscode/1.98.0-insider",
"x-onbehalf-extension-id": "poai.copilot-proxy/1.0.1",
},
} as const
export const GITHUB_API_CONFIG = {
baseURL: "https://api.github.com",
} as const
export const GITHUB_WEB_API_CONFIG = {
baseURL: "https://github.com",
} as const