We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5dcf8e commit da3a3faCopy full SHA for da3a3fa
src/ai/huggingFaceProvider.ts
@@ -15,8 +15,6 @@ export class HuggingFaceProvider extends OpenAICompatibleProvider<typeof provide
15
};
16
17
async getModels(): Promise<readonly AIModel<typeof provider.id>[]> {
18
- const apiKey = await this.getApiKey();
19
-
20
const query = new URLSearchParams({
21
filter: 'text-generation,conversational',
22
inference: 'warm',
@@ -27,7 +25,6 @@ export class HuggingFaceProvider extends OpenAICompatibleProvider<typeof provide
27
25
headers: {
28
26
Accept: 'application/json',
29
'Content-Type': 'application/json',
30
- Authorization: apiKey != null ? `Bearer ${apiKey}` : undefined!,
31
},
32
method: 'GET',
33
});
0 commit comments