|
|
@@ -78,6 +78,7 @@ type GlobalStateKey =
|
|
|
| "openAiBaseUrl"
|
|
|
| "openAiModelId"
|
|
|
| "openAiCustomModelInfo"
|
|
|
+ | "openAiUseAzure"
|
|
|
| "ollamaModelId"
|
|
|
| "ollamaBaseUrl"
|
|
|
| "lmStudioModelId"
|
|
|
@@ -1217,6 +1218,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
openAiApiKey,
|
|
|
openAiModelId,
|
|
|
openAiCustomModelInfo,
|
|
|
+ openAiUseAzure,
|
|
|
ollamaModelId,
|
|
|
ollamaBaseUrl,
|
|
|
lmStudioModelId,
|
|
|
@@ -1251,6 +1253,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
await this.storeSecret("openAiApiKey", openAiApiKey)
|
|
|
await this.updateGlobalState("openAiModelId", openAiModelId)
|
|
|
await this.updateGlobalState("openAiCustomModelInfo", openAiCustomModelInfo)
|
|
|
+ await this.updateGlobalState("openAiUseAzure", openAiUseAzure)
|
|
|
await this.updateGlobalState("ollamaModelId", ollamaModelId)
|
|
|
await this.updateGlobalState("ollamaBaseUrl", ollamaBaseUrl)
|
|
|
await this.updateGlobalState("lmStudioModelId", lmStudioModelId)
|
|
|
@@ -1868,6 +1871,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
openAiApiKey,
|
|
|
openAiModelId,
|
|
|
openAiCustomModelInfo,
|
|
|
+ openAiUseAzure,
|
|
|
ollamaModelId,
|
|
|
ollamaBaseUrl,
|
|
|
lmStudioModelId,
|
|
|
@@ -1932,6 +1936,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
this.getSecret("openAiApiKey") as Promise<string | undefined>,
|
|
|
this.getGlobalState("openAiModelId") as Promise<string | undefined>,
|
|
|
this.getGlobalState("openAiCustomModelInfo") as Promise<ModelInfo | undefined>,
|
|
|
+ this.getGlobalState("openAiUseAzure") as Promise<boolean | undefined>,
|
|
|
this.getGlobalState("ollamaModelId") as Promise<string | undefined>,
|
|
|
this.getGlobalState("ollamaBaseUrl") as Promise<string | undefined>,
|
|
|
this.getGlobalState("lmStudioModelId") as Promise<string | undefined>,
|
|
|
@@ -2013,6 +2018,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
openAiApiKey,
|
|
|
openAiModelId,
|
|
|
openAiCustomModelInfo,
|
|
|
+ openAiUseAzure,
|
|
|
ollamaModelId,
|
|
|
ollamaBaseUrl,
|
|
|
lmStudioModelId,
|