Skip to content

Commit

Permalink
Prioritize built-in AI providers (Copilot)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Sep 17, 2024
1 parent 88cffe4 commit b5cbe84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/ai/aiProviderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ interface AIProviderConstructor<Provider extends AIProviders = AIProviders> {
}

const _supportedProviderTypes = new Map<AIProviders, AIProviderConstructor>([
...(supportedInVSCodeVersion('language-models') ? [['vscode', VSCodeAIProvider]] : ([] as any)),
['openai', OpenAIProvider],
['anthropic', AnthropicProvider],
['gemini', GeminiProvider],
]);
if (supportedInVSCodeVersion('language-models')) {
_supportedProviderTypes.set('vscode', VSCodeAIProvider);
}

export interface AIProvider<Provider extends AIProviders = AIProviders> extends Disposable {
readonly id: Provider;
Expand Down
2 changes: 1 addition & 1 deletion src/quickpicks/aiModelPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function showAIModelPicker(
items.push({
label: m.name,
iconPath: picked ? new ThemeIcon('check') : new ThemeIcon('blank'),
// description: m.provider.name,
// description: ` ~${formatNumeric(m.maxTokens)} tokens`,
model: m,
picked: picked,
} satisfies ModelQuickPickItem);
Expand Down

0 comments on commit b5cbe84

Please sign in to comment.