Skip to content

Commit d87ac9a

Browse files
committed
Refine the API tool multi-configuration quick pick to display more detailed settings and accurately identify the default configuration
1 parent f66d468 commit d87ac9a

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ export const setup_api_tool_multi_config = async (params: {
153153
default_config &&
154154
default_config.provider_type == config.provider_type &&
155155
default_config.provider_name == config.provider_name &&
156-
default_config.model == config.model
156+
default_config.model == config.model &&
157+
default_config.temperature == config.temperature &&
158+
default_config.reasoning_effort == config.reasoning_effort
157159

158160
let buttons = []
159161
if (current_configs.length > 1) {
@@ -204,14 +206,20 @@ export const setup_api_tool_multi_config = async (params: {
204206
}
205207

206208
return {
207-
label: config.model,
209+
label: is_default ? `$(star) ${config.model}` : config.model,
208210
description: `${
209-
config.reasoning_effort ? `${config.reasoning_effort}` : ''
210-
}${
211211
config.reasoning_effort
212-
? ` · ${config.provider_name}`
213-
: `${config.provider_name}`
212+
? `Reasoning effort: ${config.reasoning_effort}`
213+
: ''
214+
}${
215+
config.temperature &&
216+
config.temperature != DEFAULT_TEMPERATURE[params.tool]
217+
? config.reasoning_effort
218+
? ` · Temperature: ${config.temperature}`
219+
: `Temperature: ${config.temperature}`
220+
: ''
214221
}`,
222+
detail: config.provider_name,
215223
buttons,
216224
config,
217225
index

0 commit comments

Comments
 (0)