Skip to content

Commit 606f3fc

Browse files
fix(gateway): inject justification in language model requests to appease strict providers
1 parent 789cb4f commit 606f3fc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "GitHub Copilot API Gateway",
44
"description": "Free & open-source universal API Gateway for all VS Code language models. Auto-discovers GitHub Copilot, Gemini, Ollama & any AI extension — exposing them via local OpenAI, Anthropic, Google & Llama compatible APIs. One endpoint, every model. Use with Cursor, LangChain, Agents & more.",
55
"icon": "media/icon.png",
6-
"version": "2.11.5",
6+
"version": "2.11.6",
77
"author": {
88
"name": "Suhaib Bin Younis",
99
"email": "vscode@suhaib.in",

src/CopilotApiGateway.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,9 @@ export class CopilotApiGateway implements vscode.Disposable {
38393839
}
38403840

38413841
// Build request options
3842-
const options: vscode.LanguageModelChatRequestOptions = {};
3842+
const options: vscode.LanguageModelChatRequestOptions = {
3843+
justification: 'Copilot API Gateway'
3844+
};
38433845

38443846
if (tools && tools.length > 0) {
38453847
options.tools = tools;

0 commit comments

Comments
 (0)