File tree Expand file tree Collapse file tree
ui/src/components/editor/panel/Configurations
vscode/src/views/panel/frontend/Main/MainView Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ export namespace Configurations {
99 export type Configuration = {
1010 id : string
1111 model : string
12- provider : string
12+ provider_name : string
1313 temperature ?: number
1414 reasoning_effort ?: string
15- cache_enabled ?: boolean
1615 is_pinned ?: boolean
1716 }
1817
@@ -36,16 +35,13 @@ export const Configurations: React.FC<Configurations.Props> = (props) => {
3635 configuration : Configurations . Configuration ,
3736 is_dragging_disabled : boolean
3837 ) => {
39- const description_parts = [ configuration . provider ]
38+ const description_parts = [ configuration . provider_name ]
4039 if ( configuration . reasoning_effort ) {
4140 description_parts . push ( `${ configuration . reasoning_effort } ` )
4241 }
4342 if ( configuration . temperature != null ) {
4443 description_parts . push ( `${ configuration . temperature } ` )
4544 }
46- if ( configuration . cache_enabled ) {
47- description_parts . push ( 'cache-enabled' )
48- }
4945
5046 const description = description_parts . join ( ' · ' )
5147
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export const MainView: React.FC<Props> = (props) => {
154154 on_quick_action_click = { props . on_quick_action_click }
155155 are_keyboard_shortcuts_disabled = { props . are_keyboard_shortcuts_disabled }
156156 />
157- < Scrollable >
157+ < Scrollable scroll_to_top_key = { props . scroll_reset_key } >
158158 < UiSeparator height = { 4 } />
159159
160160 { ! props . is_connected && props . mode == MODE . WEB && (
@@ -279,11 +279,7 @@ export const MainView: React.FC<Props> = (props) => {
279279 < UiSeparator height = { 8 } />
280280 < UiConfigurations
281281 api_prompt_type = { props . api_prompt_type }
282- configurations = { props . configurations . map ( ( c ) => ( {
283- ...c ,
284- provider : c . provider_name ,
285- cache_enabled : c . instructions_placement == 'below-only'
286- } ) ) }
282+ configurations = { props . configurations }
287283 on_configuration_click = { props . on_configuration_click }
288284 on_reorder = { props . on_configurations_reorder }
289285 on_toggle_pinned = { props . on_toggle_pinned_configuration }
You can’t perform that action at this time.
0 commit comments