Skip to content

Commit 8191930

Browse files
authored
Merge pull request #65 from HyunggyuJang/fix-individual-account-url
fix: use default API URL when account type is individual
2 parents e45c6db + 0afccfa commit 8191930

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/api-config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ const USER_AGENT = `GitHubCopilotChat/${COPILOT_VERSION}`
1414
const API_VERSION = "2025-10-01"
1515

1616
export const copilotBaseUrl = (state: State) =>
17-
`https://api.${state.accountType}.githubcopilot.com`
18-
17+
state.accountType === "individual" ?
18+
"https://api.githubcopilot.com"
19+
: `https://api.${state.accountType}.githubcopilot.com`
1920
export const copilotHeaders = (state: State, vision: boolean = false) => {
2021
const headers: Record<string, string> = {
2122
Authorization: `Bearer ${state.copilotToken}`,

0 commit comments

Comments
 (0)