1+ import { randomUUID } from "node:crypto"
2+
13import type { State } from "./state"
24
35export 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