mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Pass baseURL to Gemini API if googleGeminiBaseUrl is set (#2776)
This commit is contained in:
parent
b8b90737fa
commit
c10600e354
2 changed files with 8 additions and 0 deletions
5
.changeset/stale-bikes-jam.md
Normal file
5
.changeset/stale-bikes-jam.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Allow custom URLs for Gemini provider
|
||||
|
|
@ -30,6 +30,9 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl
|
|||
model,
|
||||
contents: messages.map(convertAnthropicMessageToGemini),
|
||||
config: {
|
||||
httpOptions: this.options.googleGeminiBaseUrl
|
||||
? { baseUrl: this.options.googleGeminiBaseUrl }
|
||||
: undefined,
|
||||
thinkingConfig,
|
||||
maxOutputTokens,
|
||||
temperature: this.options.modelTemperature ?? 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue