Skip to content

Commit 06d25ae

Browse files
committed
chore: update extension version
1 parent 1bcb35c commit 06d25ae

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/lib/api-config.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { randomUUID } from "node:crypto"
2+
13
import type { State } from "./state"
24

35
export const standardHeaders = () => ({
@@ -12,10 +14,11 @@ export const copilotHeaders = (state: State) => ({
1214
"content-type": standardHeaders()["content-type"],
1315
"copilot-integration-id": "vscode-chat",
1416
"editor-version": `vscode/${state.vsCodeVersion}`,
15-
"editor-plugin-version": "copilot-chat/0.24.1",
17+
"editor-plugin-version": "copilot-chat/0.26.7",
18+
"user-agent": "GitHubCopilotChat/0.26.7",
1619
"openai-intent": "conversation-panel",
17-
"x-github-api-version": "2024-12-15",
18-
"x-request-id": globalThis.crypto.randomUUID(),
20+
"x-github-api-version": "2025-04-01",
21+
"x-request-id": randomUUID(),
1922
"x-vscode-user-agent-library-version": "electron-fetch",
2023
})
2124

@@ -24,9 +27,9 @@ export const githubHeaders = (state: State) => ({
2427
...standardHeaders(),
2528
authorization: `token ${state.githubToken}`,
2629
"editor-version": `vscode/${state.vsCodeVersion}`,
27-
"editor-plugin-version": "copilot-chat/0.24.1",
28-
"user-agent": "GitHubCopilotChat/0.24.1",
29-
"x-github-api-version": "2024-12-15",
30+
"editor-plugin-version": "copilot-chat/0.26.7",
31+
"user-agent": "GitHubCopilotChat/0.26.7",
32+
"x-github-api-version": "2025-04-01",
3033
"x-vscode-user-agent-library-version": "electron-fetch",
3134
})
3235

0 commit comments

Comments
 (0)