Release v2.2.0: Configurable API Timeout
🚀 New Feature
Configurable API Timeout (#8)
- Custom Timeout Setting: Added new
api_timeoutconfiguration option allowing users to set API request timeout from 5 to 600 seconds (default: 30 seconds) - Local LLM Support: Enables use of slower local LLM instances like Ollama that require more than 30 seconds to generate responses
- Full UI Integration: Timeout can be configured during initial setup and modified via Options Flow without reconfiguration
🔧 Technical Details
Configuration Options
| Parameter | Type | Range | Default |
|---|---|---|---|
api_timeout |
integer | 5-600 seconds | 30 seconds |
Files Modified
const.py- Added timeout constants (CONF_API_TIMEOUT, DEFAULT_API_TIMEOUT, MIN_API_TIMEOUT, MAX_API_TIMEOUT)config_flow.py- Added timeout field to provider form and options flowapi_client.py- Parameterized timeout in API clientcoordinator.py- Use configurable timeout in message processing__init__.py- Read and pass timeout from configuration
Breaking Changes
- None - this release maintains full backward compatibility
- Existing configurations will use the default 30-second timeout
🌐 Internationalization
Updated Translations
- 8 Language Support: Added translations for new timeout setting in English, Russian, German, Spanish, Italian, Hindi, Serbian, and Chinese
📋 Usage Example
# In Home Assistant configuration or via UI
api_timeout: 120 # 2 minutes for slower local models🙏 Community
Thanks to @Skyview79 for the feature request (#8)!
Full Changelog: v2.1.9...v2.2.0