|
|
@@ -127,6 +127,7 @@ type GlobalStateKey =
|
|
|
| "requestyModelInfo"
|
|
|
| "unboundModelInfo"
|
|
|
| "modelTemperature"
|
|
|
+ | "mistralCodestralUrl"
|
|
|
|
|
|
export const GlobalFileNames = {
|
|
|
apiConversationHistory: "api_conversation_history.json",
|
|
|
@@ -1631,6 +1632,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
openRouterUseMiddleOutTransform,
|
|
|
vsCodeLmModelSelector,
|
|
|
mistralApiKey,
|
|
|
+ mistralCodestralUrl,
|
|
|
unboundApiKey,
|
|
|
unboundModelId,
|
|
|
unboundModelInfo,
|
|
|
@@ -1676,6 +1678,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
await this.updateGlobalState("openRouterUseMiddleOutTransform", openRouterUseMiddleOutTransform)
|
|
|
await this.updateGlobalState("vsCodeLmModelSelector", vsCodeLmModelSelector)
|
|
|
await this.storeSecret("mistralApiKey", mistralApiKey)
|
|
|
+ await this.updateGlobalState("mistralCodestralUrl", mistralCodestralUrl)
|
|
|
await this.storeSecret("unboundApiKey", unboundApiKey)
|
|
|
await this.updateGlobalState("unboundModelId", unboundModelId)
|
|
|
await this.updateGlobalState("unboundModelInfo", unboundModelInfo)
|
|
|
@@ -2490,6 +2493,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
openAiNativeApiKey,
|
|
|
deepSeekApiKey,
|
|
|
mistralApiKey,
|
|
|
+ mistralCodestralUrl,
|
|
|
azureApiVersion,
|
|
|
openAiStreamingEnabled,
|
|
|
openRouterModelId,
|
|
|
@@ -2570,6 +2574,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
this.getSecret("openAiNativeApiKey") as Promise<string | undefined>,
|
|
|
this.getSecret("deepSeekApiKey") as Promise<string | undefined>,
|
|
|
this.getSecret("mistralApiKey") as Promise<string | undefined>,
|
|
|
+ this.getGlobalState("mistralCodestralUrl") as Promise<string | undefined>,
|
|
|
this.getGlobalState("azureApiVersion") as Promise<string | undefined>,
|
|
|
this.getGlobalState("openAiStreamingEnabled") as Promise<boolean | undefined>,
|
|
|
this.getGlobalState("openRouterModelId") as Promise<string | undefined>,
|
|
|
@@ -2667,6 +2672,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
openAiNativeApiKey,
|
|
|
deepSeekApiKey,
|
|
|
mistralApiKey,
|
|
|
+ mistralCodestralUrl,
|
|
|
azureApiVersion,
|
|
|
openAiStreamingEnabled,
|
|
|
openRouterModelId,
|