Skip to content

Commit 8402688

Browse files
committed
Update quick pick item descriptions to display temperature and move provider name to detail
1 parent 54671c4 commit 8402688

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import axios from 'axios'
77
import { PROVIDERS } from '@shared/constants/providers'
88
import { LAST_SELECTED_EDIT_CONTEXT_CONFIG_INDEX_STATE_KEY } from '@/constants/state-keys'
99
import { EditFormat } from '@shared/types/edit-format'
10+
import { DEFAULT_TEMPERATURE } from '@shared/constants/api-tools'
1011

1112
const get_edit_context_config = async (
1213
api_providers_manager: ApiProvidersManager,
@@ -87,12 +88,18 @@ const get_edit_context_config = async (
8788
return {
8889
label: config.model,
8990
description: `${
90-
config.reasoning_effort ? `${config.reasoning_effort}` : ''
91-
}${
9291
config.reasoning_effort
93-
? ` · ${config.provider_name}`
94-
: `${config.provider_name}`
92+
? `Reasoning effort: ${config.reasoning_effort}`
93+
: ''
94+
}${
95+
config.temperature &&
96+
config.temperature != DEFAULT_TEMPERATURE['edit-context']
97+
? config.reasoning_effort
98+
? ` · Temperature: ${config.temperature}`
99+
: `Temperature: ${config.temperature}`
100+
: ''
95101
}`,
102+
detail: config.provider_name,
96103
config,
97104
index,
98105
buttons

0 commit comments

Comments
 (0)