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 b8b9073 commit 9f22c9fCopy full SHA for 9f22c9f
src/api/providers/gemini.ts
@@ -30,13 +30,18 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl
30
model,
31
contents: messages.map(convertAnthropicMessageToGemini),
32
config: {
33
+ httpOptions: this.options.googleGeminiBaseUrl
34
+ ? { baseUrl: this.options.googleGeminiBaseUrl }
35
+ : undefined,
36
thinkingConfig,
37
maxOutputTokens,
38
temperature: this.options.modelTemperature ?? 0,
39
systemInstruction: systemPrompt,
40
},
41
}
42
43
+ console.log("params", params)
44
+
45
const result = await this.client.models.generateContentStream(params)
46
47
let lastUsageMetadata: GenerateContentResponseUsageMetadata | undefined
0 commit comments