Skip to content

Commit 87eb44e

Browse files
list all openrouter models without category but tools support (#208)
* list all openrouter models without category * use models with tool support --------- Co-authored-by: Logan Ramos <[email protected]>
1 parent fef53e1 commit 87eb44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class OpenRouterBYOKModelRegistry extends BaseOpenAICompatibleBYOKRegistr
5757
}
5858

5959
override async getAllModels(apiKey: string): Promise<{ id: string; name: string }[]> {
60-
const response = await this._fetcherService.fetch('https://openrouter.ai/api/v1/models?category=programming', { method: 'GET' });
60+
const response = await this._fetcherService.fetch('https://openrouter.ai/api/v1/models?supported_parameters=tools', { method: 'GET' });
6161
const data: any = await response.json();
6262
return data.data;
6363
}

0 commit comments

Comments
 (0)