Skip to content

Commit aa94d30

Browse files
committed
Ensure temperature is always displayed in the edit context configuration quick pick
1 parent b0cff0d commit aa94d30

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ 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'
1110

1211
const get_edit_context_config = async (
1312
api_providers_manager: ApiProvidersManager,
@@ -91,13 +90,8 @@ const get_edit_context_config = async (
9190
config.reasoning_effort
9291
? `Reasoning effort: ${config.reasoning_effort}`
9392
: ''
94-
}${
95-
config.temperature &&
96-
config.temperature != DEFAULT_TEMPERATURE['edit-context']
97-
? config.reasoning_effort
98-
? ` · Temperature: ${config.temperature}`
99-
: `Temperature: ${config.temperature}`
100-
: ''
93+
}${config.reasoning_effort ? ' · ' : ''}Temperature: ${
94+
config.temperature
10195
}`,
10296
detail: config.provider_name,
10397
config,

0 commit comments

Comments
 (0)