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.
2 parents 1ed941b + 01c0b46 commit 8b370d4Copy full SHA for 8b370d4
packages/server/src/utils/ai/select-ai-provider.ts
@@ -71,8 +71,9 @@ export function selectAIProvider(config: { apiUrl: string; apiKey: string }) {
71
return createOpenAICompatible({
72
name: "gemini",
73
baseURL: config.apiUrl,
74
- queryParams: { key: config.apiKey },
75
- headers: {},
+ headers: {
+ Authorization: `Bearer ${config.apiKey}`,
76
+ },
77
});
78
case "custom":
79
0 commit comments