@@ -78,6 +78,7 @@ type GlobalStateKey =
7878 | "openAiBaseUrl"
7979 | "openAiModelId"
8080 | "openAiCustomModelInfo"
81+ | "openAiUseAzure"
8182 | "ollamaModelId"
8283 | "ollamaBaseUrl"
8384 | "lmStudioModelId"
@@ -1217,6 +1218,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
12171218 openAiApiKey,
12181219 openAiModelId,
12191220 openAiCustomModelInfo,
1221+ openAiUseAzure,
12201222 ollamaModelId,
12211223 ollamaBaseUrl,
12221224 lmStudioModelId,
@@ -1251,6 +1253,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
12511253 await this . storeSecret ( "openAiApiKey" , openAiApiKey )
12521254 await this . updateGlobalState ( "openAiModelId" , openAiModelId )
12531255 await this . updateGlobalState ( "openAiCustomModelInfo" , openAiCustomModelInfo )
1256+ await this . updateGlobalState ( "openAiUseAzure" , openAiUseAzure )
12541257 await this . updateGlobalState ( "ollamaModelId" , ollamaModelId )
12551258 await this . updateGlobalState ( "ollamaBaseUrl" , ollamaBaseUrl )
12561259 await this . updateGlobalState ( "lmStudioModelId" , lmStudioModelId )
@@ -1868,6 +1871,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
18681871 openAiApiKey ,
18691872 openAiModelId ,
18701873 openAiCustomModelInfo ,
1874+ openAiUseAzure ,
18711875 ollamaModelId ,
18721876 ollamaBaseUrl ,
18731877 lmStudioModelId ,
@@ -1932,6 +1936,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
19321936 this . getSecret ( "openAiApiKey" ) as Promise < string | undefined > ,
19331937 this . getGlobalState ( "openAiModelId" ) as Promise < string | undefined > ,
19341938 this . getGlobalState ( "openAiCustomModelInfo" ) as Promise < ModelInfo | undefined > ,
1939+ this . getGlobalState ( "openAiUseAzure" ) as Promise < boolean | undefined > ,
19351940 this . getGlobalState ( "ollamaModelId" ) as Promise < string | undefined > ,
19361941 this . getGlobalState ( "ollamaBaseUrl" ) as Promise < string | undefined > ,
19371942 this . getGlobalState ( "lmStudioModelId" ) as Promise < string | undefined > ,
@@ -2013,6 +2018,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
20132018 openAiApiKey,
20142019 openAiModelId,
20152020 openAiCustomModelInfo,
2021+ openAiUseAzure,
20162022 ollamaModelId,
20172023 ollamaBaseUrl,
20182024 lmStudioModelId,
0 commit comments