-
Your Name authored
Proxy-Awareness: - Added ProxyHeadersMiddleware to detect and handle reverse proxy headers - Implemented get_base_url() and url_for() helper functions for proxy-aware URL generation - Updated all RedirectResponse calls to use url_for() - Updated templates/base.html to use url_for() for all links and fetch calls - Added comprehensive nginx proxy configuration examples to DOCUMENTATION.md - Supports X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Prefix, X-Forwarded-For headers - Application now fully supports deployment behind reverse proxies with subpaths Configurable Error Cooldown: - Added error_cooldown field to Model class in aisbf/models.py - Added error_cooldown to ProviderModelConfig in aisbf/config.py - Added default_error_cooldown to ProviderConfig in aisbf/config.py - Added default_error_cooldown to RotationConfig in aisbf/config.py - Updated BaseProviderHandler.record_failure() in aisbf/providers.py to use cascading cooldown configuration - Cooldown configuration follows cascading pattern: model-specific > provider default > system default (300 seconds) - Updated DOCUMENTATION.md with error_cooldown configuration examples - Updated AI.PROMPT with error_cooldown documentation Both features are fully documented and ready for production use.
673281d1