mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Add mistralCodestralUrl to global state management in ClineProvider
This commit is contained in:
parent
95078a6bc9
commit
19c38a3668
2 changed files with 8 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ export class MistralHandler implements ApiHandler {
|
|||
constructor(options: ApiHandlerOptions) {
|
||||
this.options = options
|
||||
const baseUrl = this.getBaseUrl()
|
||||
console.log("MistralHandler: baseUrl", baseUrl)
|
||||
// OR Option 2: Using the built-in debug logger
|
||||
console.debug(`[Roo Code] MistralHandler using baseUrl: ${baseUrl}`)
|
||||
this.client = new Mistral({
|
||||
serverURL: baseUrl,
|
||||
apiKey: this.options.mistralApiKey,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue