add config for gemini custom base url

This commit is contained in:
dongqing 2025-03-11 16:46:40 +08:00
parent 8b0956666c
commit a3a5592654
3 changed files with 2 additions and 1 deletions

View file

@ -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: {

View file

@ -116,6 +116,7 @@ export const API_CONFIG_KEYS: GlobalStateKey[] = [
"lmStudioBaseUrl",
"lmStudioDraftModelId",
"lmStudioSpeculativeDecodingEnabled",
"googleGeminiBaseUrl",
"mistralCodestralUrl",
"azureApiVersion",
"openRouterUseMiddleOutTransform",

View file

@ -59,6 +59,7 @@ export const GLOBAL_STATE_KEYS = [
"openRouterModelInfo",
"openRouterBaseUrl",
"openRouterUseMiddleOutTransform",
"googleGeminiBaseUrl",
"allowedCommands",
"soundEnabled",
"soundVolume",