Skip to content

Commit 8d8ed43

Browse files
committed
Bump editor version to 1.901.0 and clear temperature and reasoning effort when changing model or provider
1 parent 2a3ba1d commit 8d8ed43

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

apps/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "The fastest way to code with AI (CWC)",
5-
"version": "1.900.0",
5+
"version": "1.901.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

apps/editor/src/views/utils/upsert-configuration/upsert-configuration.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ export const upsert_configuration = async (params: {
348348
tool_type: params.tool_type
349349
})
350350
if (new_model !== undefined) {
351+
if (
352+
updated_config.provider_name != new_provider.provider_name ||
353+
updated_config.model != new_model
354+
) {
355+
delete updated_config.temperature
356+
delete updated_config.reasoning_effort
357+
}
351358
updated_config.provider_name = new_provider.provider_name
352359
updated_config.model = new_model
353360
break

0 commit comments

Comments
 (0)