From 92c230341679bd3f62969af0f631f6b225dbc9d4 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 31 Dec 2024 22:01:11 -0800 Subject: [PATCH] Fix 'allow stream options' checkbox --- src/core/webview/ClineProvider.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index a28fb90..f2fae33 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -63,6 +63,7 @@ type GlobalStateKey = | "lmStudioBaseUrl" | "anthropicBaseUrl" | "azureApiVersion" + | "includeStreamOptions" | "openRouterModelId" | "openRouterModelInfo" | "openRouterUseMiddleOutTransform" @@ -421,6 +422,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { geminiApiKey, openAiNativeApiKey, azureApiVersion, + includeStreamOptions, openRouterModelId, openRouterModelInfo, openRouterUseMiddleOutTransform, @@ -448,6 +450,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { await this.storeSecret("openAiNativeApiKey", openAiNativeApiKey) await this.storeSecret("deepSeekApiKey", message.apiConfiguration.deepSeekApiKey) await this.updateGlobalState("azureApiVersion", azureApiVersion) + await this.updateGlobalState("includeStreamOptions", includeStreamOptions) await this.updateGlobalState("openRouterModelId", openRouterModelId) await this.updateGlobalState("openRouterModelInfo", openRouterModelInfo) await this.updateGlobalState("openRouterUseMiddleOutTransform", openRouterUseMiddleOutTransform) @@ -1163,6 +1166,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { openAiNativeApiKey, deepSeekApiKey, azureApiVersion, + includeStreamOptions, openRouterModelId, openRouterModelInfo, openRouterUseMiddleOutTransform, @@ -1208,6 +1212,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { this.getSecret("openAiNativeApiKey") as Promise, this.getSecret("deepSeekApiKey") as Promise, this.getGlobalState("azureApiVersion") as Promise, + this.getGlobalState("includeStreamOptions") as Promise, this.getGlobalState("openRouterModelId") as Promise, this.getGlobalState("openRouterModelInfo") as Promise, this.getGlobalState("openRouterUseMiddleOutTransform") as Promise, @@ -1270,6 +1275,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { openAiNativeApiKey, deepSeekApiKey, azureApiVersion, + includeStreamOptions, openRouterModelId, openRouterModelInfo, openRouterUseMiddleOutTransform,