We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e45c6db + 0afccfa commit 8191930Copy full SHA for 8191930
1 file changed
src/lib/api-config.ts
@@ -14,8 +14,9 @@ const USER_AGENT = `GitHubCopilotChat/${COPILOT_VERSION}`
14
const API_VERSION = "2025-10-01"
15
16
export const copilotBaseUrl = (state: State) =>
17
- `https://api.${state.accountType}.githubcopilot.com`
18
-
+ state.accountType === "individual" ?
+ "https://api.githubcopilot.com"
19
+ : `https://api.${state.accountType}.githubcopilot.com`
20
export const copilotHeaders = (state: State, vision: boolean = false) => {
21
const headers: Record<string, string> = {
22
Authorization: `Bearer ${state.copilotToken}`,
0 commit comments