Skip to content

Commit f13e31e

Browse files
committed
Add support for setting default intelligent file search API configuration
- it's been reported that default configuration for 'intelligent file search' cannot be set ├── apps │ ├── browser │ │ └── webpack.config.ts │ └── editor │ ├── package.json │ ├── src │ │ ├── commands │ │ │ ├── apply-response-command │ │ │ │ ├── apply-response-command.ts │ │ │ │ ├── response-processor.ts │ │ │ │ └── utils │ │ │ │ ├── preview │ │ │ │ │ └── preview.ts │ │ │ │ └── preview-handler.ts │ │ │ ├── code-at-cursor-command │ │ │ │ └── utils │ │ │ │ └── get-code-at-cursor-config.ts │ │ │ └── generate-commit-message-commands │ │ │ ├── actions │ │ │ │ └── run-generate-action.ts │ │ │ └── utils │ │ │ └── get-commit-message-config.ts │ │ ├── features │ │ │ ├── checkpoints │ │ │ │ └── actions │ │ │ │ └── get-checkpoints.ts │ │ │ └── search-files │ │ │ └── utils │ │ │ └── prompt-for-config.ts │ │ ├── i18n │ │ │ └── translations │ │ │ └── views │ │ │ └── settings │ │ │ └── handlers │ │ │ ├── index.ts │ │ │ └── select-default-api-configuration.ts │ │ ├── services │ │ │ ├── model-providers-manager.ts │ │ │ └── websocket-manager.ts │ │ ├── utils │ │ │ └── changes-integration │ │ │ └── diff-processor │ │ │ └── test-cases │ │ │ └── generic-6 │ │ │ ├── expected.txt │ │ │ └── original.txt │ │ └── views │ │ ├── prompt │ │ │ ├── backend │ │ │ │ ├── message-handlers │ │ │ │ │ ├── handle-fix-all-failed-files.ts │ │ │ │ │ ├── handle-intelligent-update-file-in-preview.ts │ │ │ │ │ ├── handle-make-api-call.ts │ │ │ │ │ ├── handle-voice-input.ts │ │ │ │ │ └── utils │ │ │ │ │ └── intelligent-update-utils.ts │ │ │ │ └── prompt-view-provider.ts │ │ │ └── frontend │ │ │ └── Main │ │ │ └── MainView │ │ │ └── MainView.tsx │ │ ├── settings │ │ │ ├── backend │ │ │ │ ├── message-handlers │ │ │ │ │ ├── handle-get-api-configurations.ts │ │ │ │ │ ├── handle-get-checkpoint-lifespan.ts │ │ │ │ │ ├── handle-get-context-size-warning-threshold.ts │ │ │ │ │ ├── handle-get-edit-files-system-instructions.ts │ │ │ │ │ ├── handle-get-include-prompts-in-commit-messages.ts │ │ │ │ │ ├── handle-select-default-api-configuration.ts │ │ │ │ │ ├── handle-set-default-api-configuration.ts │ │ │ │ │ ├── handle-update-edit-files-system-instructions.ts │ │ │ │ │ ├── handle-update-include-prompts-in-commit-messages.ts │ │ │ │ │ └── index.ts │ │ │ │ └── settings-view-provider.ts │ │ │ ├── frontend │ │ │ │ ├── Home │ │ │ │ │ ├── Home.tsx │ │ │ │ │ └── sections │ │ │ │ │ └── ApiConfigurationsSection.tsx │ │ │ │ ├── Settings.tsx │ │ │ │ ├── hooks │ │ │ │ │ └── use-settings.ts │ │ │ │ └── i18n │ │ │ │ └── translations │ │ │ │ ├── api-calls.ts │ │ │ │ └── chatbots.ts │ │ │ └── types │ │ │ └── messages.ts │ │ └── shared │ │ ├── actions │ │ │ ├── api │ │ │ │ └── update │ │ │ │ └── update.ts │ │ │ └── web │ │ │ └── create.ts │ │ └── forms │ │ ├── EditApiConfigurationForm │ │ │ └── EditApiConfigurationForm.module.scss │ │ └── EditWebConfigurationForm │ │ ├── EditWebConfigurationForm.module.scss │ │ └── EditWebConfigurationForm.tsx │ └── webpack.config.ts └── packages ├── shared │ └── src │ └── constants │ └── websocket.ts └── ui └── src └── components └── editor ├── common │ └── prompts │ └── PromptField │ └── PromptField.stories.tsx ├── prompt │ └── Configurations │ ├── Configurations.module.scss │ └── Configurations.stories.tsx └── settings ├── DefaultConfigurationSelector │ ├── DefaultConfigurationSelector.module.scss │ ├── DefaultConfigurationSelector.tsx │ └── index.ts ├── Item │ └── Item.stories.tsx └── SortableList └── SortableList.stories.tsx
1 parent 67e9b7e commit f13e31e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/editor/src/views/settings/backend/message-handlers/handle-set-default-api-configuration.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export const handle_set_default_api_configuration = async (
3333
await providers_manager.set_default_commit_messages_api_configuration(
3434
api_configuration_to_set
3535
)
36+
} else if (type == 'intelligent-file-search') {
37+
await providers_manager.set_default_intelligent_file_search_api_configuration(
38+
api_configuration_to_set
39+
)
3640
} else if (type == 'voice-input') {
3741
await providers_manager.set_default_voice_input_api_configuration(
3842
api_configuration_to_set

0 commit comments

Comments
 (0)