mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
add config for gemini custom base url
This commit is contained in:
parent
8b0956666c
commit
a3a5592654
3 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,6 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl
|
|||
baseUrl: this.options.googleGeminiBaseUrl || undefined,
|
||||
},
|
||||
)
|
||||
|
||||
const result = await model.generateContentStream({
|
||||
contents: messages.map(convertAnthropicMessageToGemini),
|
||||
generationConfig: {
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ export const API_CONFIG_KEYS: GlobalStateKey[] = [
|
|||
"lmStudioBaseUrl",
|
||||
"lmStudioDraftModelId",
|
||||
"lmStudioSpeculativeDecodingEnabled",
|
||||
"googleGeminiBaseUrl",
|
||||
"mistralCodestralUrl",
|
||||
"azureApiVersion",
|
||||
"openRouterUseMiddleOutTransform",
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ export const GLOBAL_STATE_KEYS = [
|
|||
"openRouterModelInfo",
|
||||
"openRouterBaseUrl",
|
||||
"openRouterUseMiddleOutTransform",
|
||||
"googleGeminiBaseUrl",
|
||||
"allowedCommands",
|
||||
"soundEnabled",
|
||||
"soundVolume",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue