Skip to content

Commit 03f941e

Browse files
committed
Rename model providers to providers across configuration, services, UI and add migration
- move configurations.missing-configuration to 'common' translation file - refer to web configurations as chatbots - some keys in `apps/editor/src/views/settings/frontend/i18n/translations/web.ts` are incorrect - should refer to configuration (web) as 'chatbot' - add missing translations to [Fragment] - should refer to 'model providers' as 'providers' (in translations, symbols, etc.) - some keys in `apps/editor/src/views/settings/frontend/i18n/translations/api.ts` are incorrect e.g. use 'api-calls.' not 'api.' - should refer to 'model provider' as 'provider' - rename modelProviders/model-providers to providers with a proper migration - rename 'model providers' to 'providers' - rename 'model provider' to 'provider' ├── apps │ └── editor │ ├── package.json │ └── src │ ├── commands │ │ ├── code-at-cursor-command │ │ │ └── utils │ │ │ ├── get-code-at-cursor-config.ts │ │ │ └── perform-code-at-cursor.ts │ │ └── generate-commit-message-commands │ │ ├── actions │ │ │ └── run-generate-action.ts │ │ └── utils │ │ ├── generate-commit-message-with-api.ts │ │ └── get-commit-message-config.ts │ ├── constants │ │ └── secret-storage-keys.ts │ ├── extension.ts │ ├── features │ │ └── search-files │ │ ├── search-modes │ │ │ └── perform-intelligent-search-mode.ts │ │ └── utils │ │ ├── prompt-for-config.ts │ │ └── search-files-by-intelligent.ts │ ├── i18n │ │ └── translations │ │ └── views │ │ ├── prompt │ │ │ └── handlers │ │ │ └── voice-input.ts │ │ ├── settings │ │ │ └── handlers │ │ │ ├── handle-delete-model-provider.ts │ │ │ ├── handle-delete-provider.ts │ │ │ └── index.ts │ │ └── shared │ │ └── actions │ │ └── api │ │ ├── create │ │ │ └── interactions │ │ │ └── initial-select-provider.ts │ │ └── upsert-provider.ts │ ├── migrations │ │ ├── index.ts │ │ ├── migrate-clear-all-checkpoints.ts │ │ ├── migrate-commit-message-details-filename.ts │ │ ├── migrate-configurations-to-api-configurations.ts │ │ ├── migrate-edit-context-to-edit-files-system-instructions.ts │ │ ├── migrate-model-providers-to-providers.ts │ │ ├── migrate-prompt-templates-suffixes.ts │ │ └── migrate-prompt-templates-to-templates.ts │ ├── services │ │ └── providers-manager.ts │ ├── utils │ │ ├── apply-reasoning-effort.ts │ │ ├── build-user-content.ts │ │ └── show-configurations-quick-pick.ts │ └── views │ ├── prompt │ │ ├── backend │ │ │ ├── message-handlers │ │ │ │ ├── handle-create-api-configuration.ts │ │ │ │ ├── handle-get-api-configurations.ts │ │ │ │ ├── handle-make-api-call.ts │ │ │ │ ├── handle-patch-repair.ts │ │ │ │ ├── handle-pick-api-model.ts │ │ │ │ ├── handle-pick-api-reasoning-effort.ts │ │ │ │ ├── handle-pick-provider.ts │ │ │ │ ├── handle-toggle-pinned-api-configuration.ts │ │ │ │ ├── handle-voice-input.ts │ │ │ │ └── utils │ │ │ │ └── patch-repair-utils.ts │ │ │ └── prompt-view-provider.ts │ │ ├── frontend │ │ │ ├── App.tsx │ │ │ ├── Home │ │ │ │ ├── Home.module.scss │ │ │ │ ├── Home.tsx │ │ │ │ ├── hooks │ │ │ │ │ ├── use-has-scrolled-past-mode-button.ts │ │ │ │ │ ├── use-keyboard-shortcuts.ts │ │ │ │ │ └── use-tasks.ts │ │ │ │ └── index.ts │ │ │ ├── Main │ │ │ │ ├── Main.tsx │ │ │ │ ├── MainView │ │ │ │ │ ├── MainView.module.scss │ │ │ │ │ ├── MainView.tsx │ │ │ │ │ ├── components │ │ │ │ │ │ ├── BrowserConnectionStatus │ │ │ │ │ │ │ ├── BrowserConnectionStatus.tsx │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── Header │ │ │ │ │ │ │ ├── Header.module.scss │ │ │ │ │ │ │ ├── Header.tsx │ │ │ │ │ │ │ ├── hooks │ │ │ │ │ │ │ │ └── use-keyboard-shortcuts.ts │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ └── PromptAttachments │ │ │ │ │ │ ├── PromptAttachments.tsx │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── hooks │ │ │ │ │ │ ├── use-invocation-counts.ts │ │ │ │ │ │ ├── use-last-choice-tooltip.ts │ │ │ │ │ │ └── use-re-render-on-interval.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── prompt-type-labels.ts │ │ │ │ └── index.ts │ │ │ ├── Prompt.module.scss │ │ │ ├── Prompt.tsx │ │ │ ├── components │ │ │ │ ├── Layout │ │ │ │ │ ├── Footer │ │ │ │ │ │ ├── Footer.module.scss │ │ │ │ │ │ ├── Footer.tsx │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── Layout.module.scss │ │ │ │ │ └── Layout.tsx │ │ │ │ └── recent-donations │ │ │ │ └── RecentDonationsFooter │ │ │ │ ├── RecentDonationsFooter.module.scss │ │ │ │ ├── RecentDonationsFooter.tsx │ │ │ │ └── index.ts │ │ │ ├── contexts │ │ │ │ └── LayoutContext.tsx │ │ │ ├── hooks │ │ │ │ ├── use-api-configuration-editing.ts │ │ │ │ ├── use-editor-sync.ts │ │ │ │ ├── use-modal-manager.ts │ │ │ │ ├── use-preview-manager.ts │ │ │ │ ├── use-prompt │ │ │ │ │ ├── hooks │ │ │ │ │ │ └── use-instructions.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── use-prompt.ts │ │ │ │ ├── use-recent-donations.ts │ │ │ │ ├── use-response-history.ts │ │ │ │ └── use-web-configuration-editing.ts │ │ │ ├── i18n │ │ │ │ ├── translations │ │ │ │ │ ├── actions.ts │ │ │ │ │ ├── common.ts │ │ │ │ │ ├── configurations.ts │ │ │ │ │ ├── footer.ts │ │ │ │ │ ├── header.ts │ │ │ │ │ ├── home.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── modals.ts │ │ │ │ │ ├── prompt-field.ts │ │ │ │ │ ├── recent-donations.ts │ │ │ │ │ └── selected-files.ts │ │ │ │ └── use-translation.tsx │ │ │ └── utils │ │ │ └── post-message.ts │ │ └── types │ │ └── messages.ts │ ├── settings │ │ ├── backend │ │ │ ├── message-handlers │ │ │ │ ├── handle-add-provider.ts │ │ │ │ ├── handle-create-api-configuration.ts │ │ │ │ ├── handle-create-web-configuration.ts │ │ │ │ ├── handle-delete-model-provider.ts │ │ │ │ ├── handle-delete-provider.ts │ │ │ │ ├── handle-delete-web-configuration.ts │ │ │ │ ├── handle-get-api-configurations.ts │ │ │ │ ├── handle-get-providers.ts │ │ │ │ ├── handle-pick-api-model.ts │ │ │ │ ├── handle-pick-api-reasoning-effort.ts │ │ │ │ ├── handle-pick-provider.ts │ │ │ │ ├── handle-reorder-api-configurations.ts │ │ │ │ ├── handle-reorder-model-providers.ts │ │ │ │ ├── handle-reorder-providers.ts │ │ │ │ ├── handle-reorder-web-configurations.ts │ │ │ │ ├── handle-select-default-api-configuration.ts │ │ │ │ ├── handle-set-default-api-configuration.ts │ │ │ │ ├── handle-update-web-configuration.ts │ │ │ │ └── index.ts │ │ │ └── settings-view-provider.ts │ │ ├── frontend │ │ │ ├── Home │ │ │ │ ├── Home.tsx │ │ │ │ └── sections │ │ │ │ ├── ApiSection.tsx │ │ │ │ └── WebSection.tsx │ │ │ ├── Settings.tsx │ │ │ ├── forms │ │ │ │ ├── EditModelProviderForm │ │ │ │ │ └── index.ts │ │ │ │ └── EditProviderForm │ │ │ │ └── EditProviderForm.tsx │ │ │ ├── hooks │ │ │ │ ├── use-model-provider-editing.ts │ │ │ │ ├── use-provider-editing.ts │ │ │ │ ├── use-settings.ts │ │ │ │ └── use-web-configuration-editing.ts │ │ │ └── i18n │ │ │ └── translations │ │ │ ├── api.ts │ │ │ ├── index.ts │ │ │ └── web.ts │ │ └── types │ │ └── messages.ts │ └── shared │ ├── actions │ │ ├── api │ │ │ ├── create │ │ │ │ ├── create.ts │ │ │ │ └── interactions │ │ │ │ ├── initial-select-model.ts │ │ │ │ ├── initial-select-provider.ts │ │ │ │ └── verify-reasoning-effort.ts │ │ │ ├── delete.ts │ │ │ ├── reorder.ts │ │ │ ├── update │ │ │ │ ├── interactions │ │ │ │ │ ├── edit-model-for-api-config.ts │ │ │ │ │ └── edit-provider-for-api-config.ts │ │ │ │ └── update.ts │ │ │ └── upsert-provider.ts │ │ └── web │ │ ├── create.ts │ │ ├── delete.ts │ │ ├── reorder.ts │ │ └── update.ts │ ├── forms │ │ ├── EditApiConfigurationForm │ │ │ └── EditApiConfigurationForm.tsx │ │ └── EditWebConfigurationForm │ │ └── EditWebConfigurationForm.tsx │ └── i18n │ └── translations │ ├── edit-api-configuration-form.ts │ ├── edit-web-configuration-form.ts │ └── index.ts └── packages ├── shared │ └── src │ └── constants │ └── dictionary.ts └── ui └── src └── components └── editor └── settings └── Item └── Item.stories.tsx
1 parent 866f6ba commit 03f941e

89 files changed

Lines changed: 1282 additions & 1237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/editor/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@
10881088
]
10891089
}
10901090
},
1091-
"codeWebChat.modelProviders": {
1091+
"codeWebChat.providers": {
10921092
"type": "array",
10931093
"scope": "resource",
10941094
"items": {

‎apps/editor/src/commands/code-at-cursor-command/utils/get-code-at-cursor-config.ts‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import * as vscode from 'vscode'
22
import {
3-
ModelProvidersManager,
3+
ProvidersManager,
44
get_api_configuration_id,
55
ApiConfiguration
6-
} from '../../../services/model-providers-manager'
6+
} from '../../../services/providers-manager'
77
import { Logger } from '@shared/utils/logger'
88
import { LAST_USED_CODE_AT_CURSOR_CONFIG_ID_STATE_KEY } from '@/constants/state-keys'
99
import { t } from '@/i18n'
1010
import { show_configurations_quick_pick } from '@/utils/show-configurations-quick-pick'
1111
import { show_no_configurations_warning } from '@/utils/show-no-configurations-warning'
1212

1313
export const get_code_at_cursor_api_configuration = async (params: {
14-
model_providers_manager: ModelProvidersManager
14+
providers_manager: ProvidersManager
1515
show_quick_pick?: boolean
1616
extension_context: vscode.ExtensionContext
1717
api_configuration_id?: string
18-
}): Promise<{ model_provider: any; api_configuration: any } | undefined> => {
18+
}): Promise<{ provider: any; api_configuration: any } | undefined> => {
1919
const code_at_cursor_api_configurations =
20-
await params.model_providers_manager.get_api_configurations()
20+
await params.providers_manager.get_api_configurations()
2121

2222
if (code_at_cursor_api_configurations.length == 0) {
2323
show_no_configurations_warning('api')
@@ -33,7 +33,7 @@ export const get_code_at_cursor_api_configuration = async (params: {
3333
) || null
3434
} else if (!params.show_quick_pick) {
3535
const default_api_configuration =
36-
await params.model_providers_manager.get_default_code_at_cursor_api_configuration()
36+
await params.providers_manager.get_default_code_at_cursor_api_configuration()
3737
if (default_api_configuration) {
3838
selected_api_configuration = default_api_configuration
3939
} else if (code_at_cursor_api_configurations.length == 1) {
@@ -68,12 +68,12 @@ export const get_code_at_cursor_api_configuration = async (params: {
6868
selected_api_configuration = api_configuration
6969
}
7070

71-
const model_provider =
72-
await params.model_providers_manager.get_model_provider(
73-
selected_api_configuration.model_provider_name
71+
const provider =
72+
await params.providers_manager.get_provider(
73+
selected_api_configuration.provider_name
7474
)
7575

76-
if (!model_provider) {
76+
if (!provider) {
7777
vscode.window.showErrorMessage(t('common.error.api-provider-not-found'))
7878
Logger.warn({
7979
function_name: 'get_code_at_cursor_api_configuration',
@@ -83,7 +83,7 @@ export const get_code_at_cursor_api_configuration = async (params: {
8383
}
8484

8585
return {
86-
model_provider,
86+
provider,
8787
api_configuration: selected_api_configuration
8888
}
8989
}

‎apps/editor/src/commands/code-at-cursor-command/utils/perform-code-at-cursor.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
code_at_cursor_instructions_for_chatbots
99
} from '../../../constants/instructions'
1010
import { FilesCollector } from '../../../utils/files-collector'
11-
import { ModelProvidersManager } from '../../../services/model-providers-manager'
11+
import { ProvidersManager } from '../../../services/providers-manager'
1212
import { Logger } from '@shared/utils/logger'
1313
import { dictionary } from '@shared/constants/dictionary'
1414
import { apply_reasoning_effort } from '../../../utils/apply-reasoning-effort'
@@ -36,7 +36,7 @@ export const perform_code_at_cursor = async (params: {
3636
completion_instructions?: string
3737
api_configuration_id?: string
3838
}) => {
39-
const model_providers_manager = new ModelProvidersManager(
39+
const providers_manager = new ProvidersManager(
4040
params.extension_context
4141
)
4242

@@ -120,7 +120,7 @@ export const perform_code_at_cursor = async (params: {
120120

121121
if (params.show_quick_pick) {
122122
const api_configurations =
123-
await model_providers_manager.get_api_configurations()
123+
await providers_manager.get_api_configurations()
124124
const has_api_configurations = api_configurations.length > 0
125125

126126
action = await new Promise<string | undefined | 'back'>((resolve) => {
@@ -346,7 +346,7 @@ export const perform_code_at_cursor = async (params: {
346346
while (true) {
347347
const api_configuration_result = await get_code_at_cursor_api_configuration(
348348
{
349-
model_providers_manager,
349+
providers_manager,
350350
show_quick_pick,
351351
extension_context: params.extension_context,
352352
api_configuration_id: current_api_configuration_id
@@ -361,11 +361,11 @@ export const perform_code_at_cursor = async (params: {
361361
current_api_configuration_id = undefined
362362

363363
const {
364-
model_provider,
364+
provider,
365365
api_configuration: code_at_cursor_api_configuration
366366
} = api_configuration_result
367367

368-
if (!code_at_cursor_api_configuration.model_provider_name) {
368+
if (!code_at_cursor_api_configuration.provider_name) {
369369
vscode.window.showErrorMessage(
370370
dictionary.error_message.API_PROVIDER_NOT_SPECIFIED_FOR_CODE_AT_CURSOR
371371
)
@@ -404,7 +404,7 @@ export const perform_code_at_cursor = async (params: {
404404
})
405405

406406
const user_content = build_user_content({
407-
model_provider,
407+
provider,
408408
part1,
409409
part2
410410
})
@@ -423,7 +423,7 @@ export const perform_code_at_cursor = async (params: {
423423

424424
apply_reasoning_effort({
425425
body,
426-
model_provider,
426+
provider,
427427
reasoning_effort: code_at_cursor_api_configuration.reasoning_effort
428428
})
429429

@@ -448,8 +448,8 @@ export const perform_code_at_cursor = async (params: {
448448
})
449449

450450
return await send_llm_message({
451-
base_url: model_provider.base_url,
452-
api_key: model_provider.api_key,
451+
base_url: provider.base_url,
452+
api_key: provider.api_key,
453453
body,
454454
abort_signal: abort_controller.signal,
455455
on_chunk: () => {

‎apps/editor/src/commands/generate-commit-message-commands/actions/run-generate-action.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { display_token_count } from '@shared/utils/display-token-count'
2222
import { show_configurations_quick_pick } from '@/utils/show-configurations-quick-pick'
2323
import { dictionary } from '@shared/constants/dictionary'
2424
import { WebSocketManager } from '@/services/websocket-manager'
25-
import { ModelProvidersManager } from '@/services/model-providers-manager'
25+
import { ProvidersManager } from '@/services/providers-manager'
2626
import { get_response_preview_promise_resolve } from '@/commands/apply-response-command/utils/preview'
2727
import { normalize_path } from '@/utils/normalize-path'
2828
import { show_no_configurations_warning } from '@/utils/show-no-configurations-warning'
@@ -110,11 +110,11 @@ export const run_generate_action = async (params: {
110110
const action_enter_manually = t('common.action.enter-manually')
111111
const action_copy_prompt = t('common.action.copy-prompt')
112112

113-
const model_providers_manager = new ModelProvidersManager(
113+
const providers_manager = new ProvidersManager(
114114
params.extension_context
115115
)
116116
const api_configurations =
117-
await model_providers_manager.get_api_configurations()
117+
await providers_manager.get_api_configurations()
118118
const has_api_configurations = api_configurations.length > 0
119119

120120
let go_back_to_prompt_data = false
@@ -497,7 +497,7 @@ export const run_generate_action = async (params: {
497497
try {
498498
commit_message = await generate_commit_message_with_api({
499499
base_url: api_configuration_data.base_url,
500-
model_provider: api_configuration_data.model_provider,
500+
provider: api_configuration_data.provider,
501501
api_configuration: api_configuration_data.api_configuration,
502502
message: final_api_prompt!
503503
})

‎apps/editor/src/commands/generate-commit-message-commands/utils/generate-commit-message-with-api.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { send_llm_message } from '@/utils/send-llm-message'
55
import { display_token_count } from '@shared/utils/display-token-count'
66
import { Logger } from '@shared/utils/logger'
77
import { strip_wrapping_quotes } from './strip-wrapping-quotes'
8-
import { ModelProvider } from '@/services/model-providers-manager'
8+
import { Provider } from '@/services/providers-manager'
99
import { t } from '@/i18n'
1010
import { CommitMessageApiConfiguration } from './get-commit-message-config'
1111

1212
export const generate_commit_message_with_api = async (params: {
1313
base_url: string
14-
model_provider: ModelProvider
14+
provider: Provider
1515
api_configuration: CommitMessageApiConfiguration
1616
message: string
1717
}): Promise<string> => {
@@ -29,7 +29,7 @@ export const generate_commit_message_with_api = async (params: {
2929

3030
apply_reasoning_effort({
3131
body,
32-
model_provider: params.model_provider,
32+
provider: params.provider,
3333
reasoning_effort: params.api_configuration.reasoning_effort
3434
})
3535

@@ -57,7 +57,7 @@ export const generate_commit_message_with_api = async (params: {
5757
try {
5858
const response_result = await send_llm_message({
5959
base_url: params.base_url,
60-
api_key: params.model_provider.api_key,
60+
api_key: params.provider.api_key,
6161
body,
6262
abort_signal: abort_controller.signal,
6363
on_chunk: () => {

‎apps/editor/src/commands/generate-commit-message-commands/utils/get-commit-message-config.ts‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as vscode from 'vscode'
2-
import { ModelProvidersManager } from '@/services/model-providers-manager'
2+
import { ProvidersManager } from '@/services/providers-manager'
33
import { Logger } from '@shared/utils/logger'
44
import { LAST_USED_COMMIT_MESSAGES_CONFIG_ID_STATE_KEY } from '@/constants/state-keys'
55
import { t } from '@/i18n'
66
import { show_configurations_quick_pick } from '@/utils/show-configurations-quick-pick'
77
import { show_no_configurations_warning } from '@/utils/show-no-configurations-warning'
88

99
export interface CommitMessageApiConfiguration {
10-
model_provider_name: string
10+
provider_name: string
1111
model: string
1212
reasoning_effort?: string
1313
}
@@ -19,13 +19,13 @@ export const get_commit_message_api_configuration = async (params: {
1919
}): Promise<
2020
| {
2121
api_configuration: CommitMessageApiConfiguration
22-
model_provider: any
22+
provider: any
2323
base_url: string
2424
}
2525
| 'back'
2626
| null
2727
> => {
28-
const model_providers_manager = new ModelProvidersManager(
28+
const providers_manager = new ProvidersManager(
2929
params.extension_context
3030
)
3131
const show_quick_pick = params.show_quick_pick ?? false
@@ -37,11 +37,11 @@ export const get_commit_message_api_configuration = async (params: {
3737
| undefined
3838
| 'back' = show_quick_pick
3939
? undefined
40-
: await model_providers_manager.get_default_commit_messages_api_configuration()
40+
: await providers_manager.get_default_commit_messages_api_configuration()
4141

4242
if (!commit_message_api_configuration) {
4343
const api_configurations =
44-
await model_providers_manager.get_api_configurations()
44+
await providers_manager.get_api_configurations()
4545

4646
if (api_configurations.length == 0) {
4747
show_no_configurations_warning('api')
@@ -86,11 +86,11 @@ export const get_commit_message_api_configuration = async (params: {
8686
return null
8787
}
8888

89-
const model_provider = await model_providers_manager.get_model_provider(
90-
commit_message_api_configuration.model_provider_name
89+
const provider = await providers_manager.get_provider(
90+
commit_message_api_configuration.provider_name
9191
)
9292

93-
if (!model_provider) {
93+
if (!provider) {
9494
vscode.window.showErrorMessage(t('common.error.api-provider-not-found'))
9595
Logger.warn({
9696
function_name: 'get_commit_message_api_configuration',
@@ -101,7 +101,7 @@ export const get_commit_message_api_configuration = async (params: {
101101

102102
return {
103103
api_configuration: commit_message_api_configuration,
104-
model_provider,
105-
base_url: model_provider.base_url
104+
provider,
105+
base_url: provider.base_url
106106
}
107107
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SECRET_STORAGE_MODEL_PROVIDERS_KEY = 'model-providers'
1+
export const SECRET_STORAGE_PROVIDERS_KEY = 'providers'

‎apps/editor/src/extension.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
migrate_prompt_templates_suffixes,
1111
migrate_commit_message_details_filename,
1212
migrate_prompt_templates_to_templates,
13-
migrate_clear_all_checkpoints
13+
migrate_clear_all_checkpoints,
14+
migrate_model_providers_to_providers
1415
} from './migrations'
1516
import {
1617
apply_response_command,
@@ -73,6 +74,8 @@ export const activate = async (extension_context: vscode.ExtensionContext) => {
7374
await migrate_prompt_templates_to_templates(extension_context)
7475
// 10 September 2026
7576
await migrate_clear_all_checkpoints(extension_context)
77+
// 20 September 2026
78+
await migrate_model_providers_to_providers(extension_context)
7679
}
7780

7881
await migrations()

‎apps/editor/src/features/search-files/search-modes/perform-intelligent-search-mode.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { prompt_for_shrink_mode } from '../utils/prompt-for-shrink-mode'
1414
import { prompt_for_api_configuration } from '../utils/prompt-for-config'
1515
import { search_files_by_intelligent } from '../utils/search-files-by-intelligent'
1616
import { prompt_for_intelligent_search_results } from '../utils/prompt-for-intelligent-search-results'
17-
import { ModelProvidersManager } from '@/services/model-providers-manager'
17+
import { ProvidersManager } from '@/services/providers-manager'
1818
import { WebSocketManager } from '@/services/websocket-manager'
1919
import { display_token_count } from '@shared/utils/display-token-count'
2020
import { show_configurations_quick_pick } from '@/utils/show-configurations-quick-pick'
@@ -119,11 +119,11 @@ export const perform_intelligent_search_mode = async (params: {
119119
let go_back_to_shrink = false
120120

121121
while (true) {
122-
const model_providers_manager = new ModelProvidersManager(
122+
const providers_manager = new ProvidersManager(
123123
params.extension_context
124124
)
125125
const api_configurations =
126-
await model_providers_manager.get_api_configurations()
126+
await providers_manager.get_api_configurations()
127127

128128
const has_api_configurations = api_configurations.length > 0
129129

@@ -381,7 +381,7 @@ export const perform_intelligent_search_mode = async (params: {
381381
: analysis.full_tokens
382382
const api_configuration_result = await prompt_for_api_configuration(
383383
{
384-
model_providers_manager,
384+
providers_manager,
385385
extension_context: params.extension_context,
386386
api_configurations,
387387
tokens_to_process,
@@ -399,14 +399,14 @@ export const perform_intelligent_search_mode = async (params: {
399399

400400
const {
401401
api_configuration: selected_api_configuration,
402-
model_provider
402+
provider
403403
} = api_configuration_result
404404

405405
const api_result = await search_files_by_intelligent(
406406
analysis.files_data,
407407
shrink_result as boolean,
408408
search_term,
409-
model_provider,
409+
provider,
410410
selected_api_configuration
411411
)
412412

0 commit comments

Comments
 (0)