@@ -4,25 +4,25 @@ import {
44 ToolConfig ,
55 get_tool_config_id
66} from '@/services/model-providers-manager'
7- import { ConfigurationForClient } from '@/views/settings/types/messages'
7+ import { ApiConfigurationForClient } from '@/views/settings/types/messages'
88
9- const create_description = ( config : ToolConfig ) : string => {
10- const description_parts = [ config . provider_name ]
11- if ( config . temperature != null ) {
12- description_parts . push ( `${ config . temperature } ` )
9+ const create_description = ( api_configuration : ToolConfig ) : string => {
10+ const description_parts = [ api_configuration . provider_name ]
11+ if ( api_configuration . temperature != null ) {
12+ description_parts . push ( `${ api_configuration . temperature } ` )
1313 }
14- if ( config . reasoning_effort ) {
15- description_parts . push ( `${ config . reasoning_effort } ` )
14+ if ( api_configuration . reasoning_effort ) {
15+ description_parts . push ( `${ api_configuration . reasoning_effort } ` )
1616 }
1717 return description_parts . join ( ' · ' )
1818}
1919
20- export const handle_get_configurations = async (
20+ export const handle_get_api_configurations = async (
2121 provider : SettingsProvider
2222) : Promise < void > => {
2323 const providers_manager = new ModelProvidersManager ( provider . context )
2424
25- const saved_configs = await providers_manager . get_tool_configs ( )
25+ const saved_api_configurations = await providers_manager . get_tool_configs ( )
2626
2727 const def_cac = await providers_manager . get_default_code_completions_config ( )
2828 const def_iu = await providers_manager . get_default_intelligent_update_config ( )
@@ -31,19 +31,19 @@ export const handle_get_configurations = async (
3131 await providers_manager . get_default_find_relevant_files_config ( )
3232 const def_vi = await providers_manager . get_default_voice_input_config ( )
3333
34- const configs_for_client : ConfigurationForClient [ ] = saved_configs . map (
35- ( config ) => {
34+ const api_configurations_for_client : ApiConfigurationForClient [ ] = saved_api_configurations . map (
35+ ( api_configuration ) => {
3636 return {
37- id : get_tool_config_id ( config ) ,
38- model : config . model ,
39- description : create_description ( config )
37+ id : get_tool_config_id ( api_configuration ) ,
38+ model : api_configuration . model ,
39+ description : create_description ( api_configuration )
4040 }
4141 }
4242 )
4343
4444 provider . postMessage ( {
45- command : 'CONFIGURATIONS ' ,
46- configurations : configs_for_client ,
45+ command : 'API_CONFIGURATIONS ' ,
46+ api_configurations : api_configurations_for_client ,
4747 defaults : {
4848 'code-at-cursor' : def_cac ? get_tool_config_id ( def_cac ) : null ,
4949 'intelligent-update' : def_iu ? get_tool_config_id ( def_iu ) : null ,
0 commit comments