Skip to content

Commit da3a3fa

Browse files
committed
Fixes prompting for api key on model discovery
1 parent f5dcf8e commit da3a3fa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ai/huggingFaceProvider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export class HuggingFaceProvider extends OpenAICompatibleProvider<typeof provide
1515
};
1616

1717
async getModels(): Promise<readonly AIModel<typeof provider.id>[]> {
18-
const apiKey = await this.getApiKey();
19-
2018
const query = new URLSearchParams({
2119
filter: 'text-generation,conversational',
2220
inference: 'warm',
@@ -27,7 +25,6 @@ export class HuggingFaceProvider extends OpenAICompatibleProvider<typeof provide
2725
headers: {
2826
Accept: 'application/json',
2927
'Content-Type': 'application/json',
30-
Authorization: apiKey != null ? `Bearer ${apiKey}` : undefined!,
3128
},
3229
method: 'GET',
3330
});

0 commit comments

Comments
 (0)