• Your Name's avatar
    Add proxy-awareness and configurable error cooldown features · 673281d1
    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
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
templates Loading commit data...
.gitignore Loading commit data...
.providers.json.swp Loading commit data...
AI.PROMPT Loading commit data...
API_EXAMPLES.md Loading commit data...
CHANGELOG.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
PYPI.md Loading commit data...
README.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
main.py Loading commit data...
pyproject.toml Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...
test_google.sh Loading commit data...
test_proxy.sh Loading commit data...