Skip to content

Commit 6376893

Browse files
committed
Refine default API tool configuration identification to include temperature and reasoning effort, and visually mark default options with a star
1 parent aa94d30 commit 6376893

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/vscode/src/commands/code-completion-commands.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ async function get_code_completion_config(
150150
default_config &&
151151
default_config.provider_type == config.provider_type &&
152152
default_config.provider_name == config.provider_name &&
153-
default_config.model == config.model
153+
default_config.model == config.model &&
154+
default_config.temperature == config.temperature &&
155+
default_config.reasoning_effort == config.reasoning_effort
154156

155157
if (code_completions_configs.length > 1) {
156158
if (index > 0) {
@@ -169,7 +171,7 @@ async function get_code_completion_config(
169171
}
170172

171173
return {
172-
label: config.model,
174+
label: is_default ? `$(star) ${config.model}` : config.model,
173175
description: `${
174176
config.reasoning_effort
175177
? `Reasoning effort: ${config.reasoning_effort}`

packages/vscode/src/commands/edit-context-commands.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ const get_edit_context_config = async (
6666
default_config &&
6767
default_config.provider_type == config.provider_type &&
6868
default_config.provider_name == config.provider_name &&
69-
default_config.model == config.model
69+
default_config.model == config.model &&
70+
default_config.temperature == config.temperature &&
71+
default_config.reasoning_effort == config.reasoning_effort
7072

7173
if (edit_context_configs.length > 1) {
7274
if (index > 0) {
@@ -85,7 +87,7 @@ const get_edit_context_config = async (
8587
}
8688

8789
return {
88-
label: config.model,
90+
label: is_default ? `$(star) ${config.model}` : config.model,
8991
description: `${
9092
config.reasoning_effort
9193
? `Reasoning effort: ${config.reasoning_effort}`

0 commit comments

Comments
 (0)