feat(settings): make LLM timeout configurable (#776)#783
Conversation
- Add timeout_seconds to LLMConfigRequest/Response schemas - Persist timeout in config router - Modify _calculate_timeout() to accept base_timeout_override - Update complete() and complete_json() call sites - Add timeout input to frontend Settings page - Add i18n translations for all 5 supported languages - Add 8 unit tests for timeout override behavior
|
hey @Frankli9986 i tested your PR, grate job but in summery:
I was testing these changes on ollama running qwen3:8b model and they wroked fine for me |
Closes #776
Summary
Users running local LLMs (e.g. Mistral via Ollama) frequently hit the hard-coded 120s/180s timeout. This PR makes the timeout user-configurable via the Settings UI.
Changes
Backend
LLMConfigRequest/LLMConfigResponse: add optionaltimeout_secondsfield (validated 30–600)routers/config.py: read and persisttimeout_secondsfrom/to config.jsonllm.py:_calculate_timeout()acceptsbase_timeout_override;completionandjsonoperations use it;health_checkkeeps its 30s defaultFrontend
lib/api/config.ts:timeout_secondsadded toLLMConfigandLLMConfigUpdateen,es,ja,pt-BR,zhBehavior
Summary by cubic
Make LLM request timeouts configurable in Settings to support slow or local models; applies to completions and JSON operations, while health checks stay at 30s. Closes #776.
timeout_seconds(30–600) in LLM config; persisted via config API;_calculate_timeout()accepts override; used incompleteandcomplete_json; defaults (120/180s) when unset.LLMConfigandLLMConfigUpdate.en,es,ja,pt-BR,zh.groqto supported providers and API key management.Written for commit 0e4d4f3. Summary will update on new commits.