• Your Name's avatar
    feat: Add intelligent 429 rate limit handling and improve configuration · 0c895e05
    Your Name authored
    - Implement intelligent 429 rate limit parsing in providers
      - Parse Retry-After and X-RateLimit-Reset headers
      - Extract wait time from response body fields
      - Parse error messages for time patterns
      - Automatically disable providers for exact duration specified
    
    - Update aisbf.sh to read port from config file dynamically
      - Add get_port() function to parse aisbf.json
      - Remove hardcoded port 17765
      - Show port number when starting server
    
    - Implement SHA256 password hashing for dashboard
      - Store password as hash in aisbf.json
      - Hash passwords during login validation
      - Hash passwords when updating settings
    
    - Add templates to package distribution
      - Update setup.py to include dashboard templates
      - Update MANIFEST.in (already included templates)
      - Add aisbf.json to package
    
    - Update documentation
      - Add OpenAI-compatible v1 endpoints to README
      - Add dashboard endpoints documentation
      - Create comprehensive API_EXAMPLES.md with examples in cURL, Python, and JavaScript
    
    - Add GPL license headers to all template files
      - HTML templates in templates/ directory
      - JavaScript code in templates/base.html
    
    All changes maintain backward compatibility while adding new features.
    0c895e05
MANIFEST.in 326 Bytes