feat: add configurable timeout settings for Ollama embedder #5737
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements configurable timeout settings for the Ollama embedder to resolve issue #5733.
Changes Made
Core Implementation
User Interface
Technical Details
Problem Solved
Previously, the Ollama embedder used hardcoded 10-second timeouts for embedding requests, which was too aggressive for large codebases. Users reported indexing failures partway through large repositories due to connection timeouts.
This implementation allows users to configure appropriate timeout values based on their:
Default Values
These defaults provide a good balance between responsiveness and reliability for most use cases, while allowing customization for specific needs.
Fixes #5733
Important
This PR adds configurable timeout settings for the Ollama embedder, including UI updates, configuration management, and test coverage.
codebase-index.tsandwebviewMessageHandler.ts.CodeIndexOllamaEmbedderinollama.tsto use new timeout settings.CodebaseIndexConfigandOllamaConfigOptionsinconfig.tsto include timeout settings.CodeIndexConfigManagerinconfig-manager.tsto load and manage new settings.CodeIndexPopover.tsxwith validation and tooltips.settings.jsonfor internationalization of timeout-related text.service-factory.spec.tsto ensure they are passed correctly to the embedder.This description was created by
for 7647fd1. You can customize this summary. It will automatically update as commits are pushed.