Skip to content

v2.2.0

Latest

Choose a tag to compare

@smkrv smkrv released this 21 Dec 21:08
· 6 commits to main since this release

Release v2.2.0: Configurable API Timeout

🚀 New Feature

Configurable API Timeout (#8)

  • Custom Timeout Setting: Added new api_timeout configuration 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 flow
  • api_client.py - Parameterized timeout in API client
  • coordinator.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