Skip to content

Commit b0cff0d

Browse files
committed
Always display the temperature setting for code completion configurations
1 parent bb8efd2 commit b0cff0d

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Logger } from '../utils/logger'
88
import he from 'he'
99
import { PROVIDERS } from '@shared/constants/providers'
1010
import { LAST_SELECTED_CODE_COMPLETION_CONFIG_INDEX_STATE_KEY } from '../constants/state-keys'
11-
import { DEFAULT_TEMPERATURE } from '@shared/constants/api-tools'
1211

1312
async function build_completion_payload(params: {
1413
document: vscode.TextDocument
@@ -175,13 +174,8 @@ async function get_code_completion_config(
175174
config.reasoning_effort
176175
? `Reasoning effort: ${config.reasoning_effort}`
177176
: ''
178-
}${
179-
config.temperature &&
180-
config.temperature != DEFAULT_TEMPERATURE['code-completions']
181-
? config.reasoning_effort
182-
? ` · Temperature: ${config.temperature}`
183-
: `Temperature: ${config.temperature}`
184-
: ''
177+
}${config.reasoning_effort ? ' · ' : ''}Temperature: ${
178+
config.temperature
185179
}`,
186180
detail: config.provider_name,
187181
config,

0 commit comments

Comments
 (0)