Skip to content

Commit 19e8a2c

Browse files
committed
Remove settings option to add other OpenAI-Compatible providers
1 parent ac35f74 commit 19e8a2c

File tree

6 files changed

+2
-28
lines changed

6 files changed

+2
-28
lines changed

package.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,24 +2435,6 @@
24352435
"preview"
24362436
],
24372437
"markdownDescription": "%github.copilot.config.byok.ollamaEndpoint%"
2438-
},
2439-
"github.copilot.chat.openAICompatibleProviders": {
2440-
"type": "array",
2441-
"items": {
2442-
"type": "object",
2443-
"properties": {
2444-
"name": {
2445-
"type": "string"
2446-
},
2447-
"url": {
2448-
"type": "string",
2449-
"format": "uri"
2450-
}
2451-
},
2452-
"required": ["name", "url"]
2453-
},
2454-
"default": [],
2455-
"markdownDescription": "%github.copilot.config.openAICompatibleProviders%"
24562438
}
24572439
}
24582440
},

package.nls.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@
132132
"github.copilot.config.agent.thinkingTool": "Enables the thinking tool that allows Copilot to think deeply about your request before generating a response in agent mode.",
133133
"github.copilot.config.setupTests.enabled": "Enables the `/setupTests` intent and prompting in `/tests` generation.",
134134
"github.copilot.config.byok.ollamaEndpoint": "The endpoint to use for the Ollama when accessed via bring your own key. Defaults to localhost.",
135-
"github.copilot.config.openAICompatibleProviders": "Other OpenAI-Compatible Providers",
136135
"github.copilot.command.fixTestFailure": "Fix Test Failure",
137136
"copilot.description": "Ask Copilot",
138137
"copilot.edits.description": "Edit files in your workspace",

src/extension/byok/vscode-node/byokContribution.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ export class BYOKContrib extends Disposable implements IExtensionContribution {
8080
this._modelRegistries.push(instantiationService.createInstance(GeminiBYOKModelRegistry));
8181
this._modelRegistries.push(instantiationService.createInstance(GroqModelRegistry));
8282
this._modelRegistries.push(instantiationService.createInstance(OAIBYOKModelRegistry));
83-
// OpenAI Compatible providers (Like LM Studio, etc.)
84-
const openAICompatibleProviders = this._configurationService.getConfig(ConfigKey.OpenAICompatibleProviders);
85-
for (const provider of openAICompatibleProviders) {
86-
this._modelRegistries.push(instantiationService.createInstance(OAICompatibleModelRegistry, provider.name, provider.url));
87-
}
8883
// Custom providers from storage
8984
const customProviders = await this._byokStorageService.getCustomProviders();
9085
for (const customProvider of customProviders) {

src/extension/byok/vscode-node/byokStorageService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,4 @@ export class BYOKStorageService implements IBYOKStorageService {
222222
// Remove provider API key
223223
await this._extensionContext.secrets.delete(`copilot-byok-${providerName}-api-key`);
224224
}
225-
}
225+
}

src/extension/byok/vscode-node/openAICompatibleProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export class OAICompatibleModelRegistry extends BaseOpenAICompatibleBYOKRegistry
2626
_instantiationService
2727
);
2828
}
29-
}
29+
}

src/platform/configuration/common/configurationService.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,6 @@ export namespace ConfigKey {
777777
export const AutoFixDiagnostics = defineSetting<boolean>('chat.agent.autoFix', true);
778778
export const NotebookFollowCellExecution = defineSetting<boolean>('chat.notebook.followCellExecution.enabled', false);
779779
export const CustomInstructionsInSystemMessage = defineSetting<boolean>('chat.customInstructionsInSystemMessage', false);
780-
/** Other OpenAI-Compative Providers */
781-
export const OpenAICompatibleProviders = defineSetting<{ name: string; url: string }[]>('chat.openAICompatibleProviders', []);
782780
}
783781

784782
export function getAllConfigKeys(): string[] {

0 commit comments

Comments
 (0)