You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAI provider ignores configured timeout/batch_size/max_retries — factory drops them #360
EmbeddingProviderFactory._create_openai_provider reads the embedding config but never forwards timeout, batch_size, or max_retries to create_openai_provider(), so OpenAI-compatible providers always run with the hardcoded defaults (30s timeout, batch_size 100, 3 retries) no matter what the user configures.
The VoyageAI path in the same factory does forward all three (embedding_factory.py, _create_voyageai_provider), so this looks like an oversight rather than a design choice — OpenAIEmbeddingProvider.__init__ already accepts all three parameters.
Index a repo large enough that an embedding batch takes >30s (easy against a local Ollama/llama.cpp/MLX endpoint) — batches still time out at 30s. provider._timeout is 30 after factory creation.
This is what the last commenter on #134 hit ("following config not work, still timeouterror with timeout shows 30") — that issue was closed, but the config keys it added are silently dropped on the OpenAI path.
Impact
Anyone running embeddings against a local OpenAI-compatible endpoint (Ollama, LM Studio, llama.cpp, MLX servers), where per-batch latency routinely exceeds 30s for larger models.
Activity