@@ -81,6 +81,7 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
8181 lmStudioBaseUrl ,
8282 anthropicBaseUrl ,
8383 geminiApiKey ,
84+ geminiBaseUrl ,
8485 openAiNativeApiKey ,
8586 deepSeekApiKey ,
8687 requestyApiKey ,
@@ -153,6 +154,7 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
153154 getGlobalState ( context , "lmStudioBaseUrl" ) as Promise < string | undefined > ,
154155 getGlobalState ( context , "anthropicBaseUrl" ) as Promise < string | undefined > ,
155156 getSecret ( context , "geminiApiKey" ) as Promise < string | undefined > ,
157+ getGlobalState ( context , "geminiBaseUrl" ) as Promise < string | undefined > ,
156158 getSecret ( context , "openAiNativeApiKey" ) as Promise < string | undefined > ,
157159 getSecret ( context , "deepSeekApiKey" ) as Promise < string | undefined > ,
158160 getSecret ( context , "requestyApiKey" ) as Promise < string | undefined > ,
@@ -266,6 +268,7 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
266268 lmStudioBaseUrl,
267269 anthropicBaseUrl,
268270 geminiApiKey,
271+ geminiBaseUrl,
269272 openAiNativeApiKey,
270273 deepSeekApiKey,
271274 requestyApiKey,
@@ -345,6 +348,7 @@ export async function updateApiConfiguration(context: vscode.ExtensionContext, a
345348 lmStudioBaseUrl,
346349 anthropicBaseUrl,
347350 geminiApiKey,
351+ geminiBaseUrl,
348352 openAiNativeApiKey,
349353 deepSeekApiKey,
350354 requestyApiKey,
@@ -401,6 +405,7 @@ export async function updateApiConfiguration(context: vscode.ExtensionContext, a
401405 await updateGlobalState ( context , "lmStudioBaseUrl" , lmStudioBaseUrl )
402406 await updateGlobalState ( context , "anthropicBaseUrl" , anthropicBaseUrl )
403407 await storeSecret ( context , "geminiApiKey" , geminiApiKey )
408+ await updateGlobalState ( context , "geminiBaseUrl" , geminiBaseUrl )
404409 await storeSecret ( context , "openAiNativeApiKey" , openAiNativeApiKey )
405410 await storeSecret ( context , "deepSeekApiKey" , deepSeekApiKey )
406411 await storeSecret ( context , "requestyApiKey" , requestyApiKey )
0 commit comments