File tree Expand file tree Collapse file tree
ui/src/components/editor/ChatInput Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export type SupportedTool =
2+ | 'code-completions'
3+ | 'edit-context'
4+ | 'intelligent-update'
5+ | 'commit-messages'
6+
7+ export const DEFAULT_TEMPERATURE : { [ key in SupportedTool ] : number } = {
8+ 'code-completions' : 0.3 ,
9+ 'edit-context' : 0.3 ,
10+ 'intelligent-update' : 0 ,
11+ 'commit-messages' : 0.3
12+ }
Original file line number Diff line number Diff line change 3131 }
3232
3333 & --disabled {
34- opacity : 0.2 ;
34+ opacity : 0.4 ;
3535 pointer-events : none ;
3636 }
3737 }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Logger } from '../utils/logger'
88import he from 'he'
99import { PROVIDERS } from '@shared/constants/providers'
1010import { LAST_SELECTED_CODE_COMPLETION_CONFIG_INDEX_STATE_KEY } from '../constants/state-keys'
11+ import { DEFAULT_TEMPERATURE } from '@shared/constants/api-tools'
1112
1213async function build_completion_payload ( params : {
1314 document : vscode . TextDocument
@@ -171,12 +172,18 @@ async function get_code_completion_config(
171172 return {
172173 label : config . model ,
173174 description : `${
174- config . reasoning_effort ? `${ config . reasoning_effort } ` : ''
175- } ${
176175 config . reasoning_effort
177- ? ` · ${ config . provider_name } `
178- : `${ config . provider_name } `
176+ ? `Reasoning effort: ${ config . reasoning_effort } `
177+ : ''
178+ } ${
179+ config . temperature &&
180+ config . temperature != DEFAULT_TEMPERATURE [ 'code-completions' ]
181+ ? config . reasoning_effort
182+ ? ` · Temperature: ${ config . temperature } `
183+ : `Temperature: ${ config . temperature } `
184+ : ''
179185 } `,
186+ detail : config . provider_name ,
180187 config,
181188 index,
182189 buttons
Original file line number Diff line number Diff line change @@ -11,14 +11,7 @@ import {
1111import { ModelFetcher } from '@/services/model-fetcher'
1212import { PROVIDERS } from '@shared/constants/providers'
1313import { Logger } from '@/utils/logger'
14-
15- type SupportedTool = 'code-completions' | 'edit-context' | 'intelligent-update'
16-
17- const DEFAULT_TEMPERATURE : { [ key in SupportedTool ] : number } = {
18- 'code-completions' : 0.3 ,
19- 'edit-context' : 0.3 ,
20- 'intelligent-update' : 0
21- }
14+ import { DEFAULT_TEMPERATURE , SupportedTool } from '@shared/constants/api-tools'
2215
2316interface ToolMethods {
2417 get_configs : ( ) => Promise < ToolConfig [ ] >
Original file line number Diff line number Diff line change @@ -8,13 +8,7 @@ import {
88import { ModelFetcher } from '@/services/model-fetcher'
99import { PROVIDERS } from '@shared/constants/providers'
1010import { COMMIT_MESSAGES_CONFIRMATION_THRESHOLD_STATE_KEY } from '@/constants/state-keys'
11-
12- type SupportedTool = 'commit-messages' | 'some-other-introduced-later'
13-
14- const DEFAULT_TEMPERATURE : { [ key in SupportedTool ] : number } = {
15- 'commit-messages' : 0.3 ,
16- 'some-other-introduced-later' : 0.3
17- }
11+ import { DEFAULT_TEMPERATURE , SupportedTool } from '@shared/constants/api-tools'
1812
1913const DEFAULT_CONFIRMATION_THRESHOLD = 20000
2014
You can’t perform that action at this time.
0 commit comments