Skip to content

Commit bc24268

Browse files
committed
Ensure 'Not set' is displayed for unconfigured reasoning effort in API tool settings
1 parent d87ac9a commit bc24268

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/vscode/src/commands/open-settings-command/setup-api-tool-multi-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const setup_api_tool_multi_config = async (params: {
3636
const model_fetcher = new ModelFetcher()
3737

3838
const BACK_LABEL = '$(arrow-left) Back'
39-
const ADD_CONFIGURATION_LABEL = '$(add) Add another configuration...'
39+
const ADD_CONFIGURATION_LABEL = '$(add) Add configuration...'
4040
const SET_AS_DEFAULT_LABEL = '$(star) Set as default'
4141
const UNSET_DEFAULT_LABEL = '$(star-full) Unset default'
4242
const PROVIDER_LABEL = 'Provider'
@@ -400,7 +400,7 @@ export const setup_api_tool_multi_config = async (params: {
400400
description: config.reasoning_effort
401401
? config.reasoning_effort.charAt(0).toUpperCase() +
402402
config.reasoning_effort.slice(1)
403-
: undefined
403+
: 'Not set'
404404
}
405405
]
406406

packages/vscode/src/commands/open-settings-command/setup-api-tool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export const setup_api_tool = async (params: {
9494
{
9595
label: reasoning_effort_label,
9696
description: config.reasoning_effort
97+
? config.reasoning_effort
98+
: 'Not set'
9799
}
98100
]
99101

0 commit comments

Comments
 (0)