Opencode-Cli / gateway /utils.py

Commit History

  1. perf(logging): silence routine uvicorn access logs, router polling traces, and progress bars

    Hermes Agent
    ef38f88

  1. Update gateway/utils.py

    Verified signature
    f57a7f8
  2. Update gateway/utils.py

    Verified signature
    f9f73ed

  1. fix(proxy): catch RemoteProtocolError and HTTPError with automatic retry in proxy_http_request

    Hermes Agent
    a0c31b3

  1. fix(omniroute): neutralize auth login rate limiting, extract client IPs, add static fallbacks

    Hermes Agent
    3956c72
  2. feat: completely remove Open WebUI and streamline multi-service container hub

    Hermes Agent
    58d7eda

  1. fix(omniroute): intercept auto/ and omniroute/ model requests in gateway proxy to resolve directly to working connected provider models

    Hermes Agent
    f8533a9

  1. style(logging): standardize neat structured iso-timestamped log formatting across all services

    Hermes Agent
    18855f0
  2. security(hardening): enforce api key auth, dynamic secret fallbacks, and error log sanitization

    Hermes Agent
    42fc0fd
  3. fix(gateway): deduplicate user-agent header in build_upstream_headers

    Hermes Agent
    cbe6b6e
  4. fix(gateway): normalize upstream User-Agent to ensure all client requests pass OmniRoute auth

    Hermes Agent
    974f208
  5. fix(proxy): case-insensitive header deduplication in build_upstream_headers to resolve 401 Missing Authentication header

    Hermes Agent
    7386ea5

  1. fix(omniroute): comprehensive OmniRoute gateway routing, migration repair, and WAL persistence fixes

    Hermes Agent
    fe55787
  2. Fix OmniRoute missing binary & 502 error: install omniroute globally in Dockerfile and update gateway proxy to serve auto-refresh loading page with embedded /data/omniroute/omniroute.log output

    Hermes Agent
    0bf0144
  3. fix(gateway): isolate GATEWAY_PORT from HF PORT env var and add process PID logging

    Hermes Agent
    d33b171
  4. fix(gateway): ensure HTTP 200 is returned for root health probes during upstream boot

    Hermes Agent
    6794fc2
  5. fix(architecture): implement single-source proxy routing and port 8000 gateway partition

    Hermes Agent
    77abf38

  1. Synchronize production gateway architecture: update Location header mappings in utils.py, sanitize diagnostic JSON output in main.py, and update ARCHITECTURE.md specification

    Hermes Agent
    fe0e480
  2. Strip X-Frame-Options and permit frame-ancestors 'self' https://huggingface.co https://*.hf.space in Content-Security-Policy to allow HF Space iframe embedding

    Hermes Agent
    30c9900
  3. Complete 6-layer production optimization pass: 300s proxy timeouts, Redis DB 0/1 separation, permanent fallback secrets, single worker Open WebUI, and watchdog health suite

    Hermes Agent
    cfca72b
  4. Fix raw header tuple encoding for Starlette, enforce strict /api ownership for Open WebUI, add Open WebUI health check loop, and accelerate SQLite backup loop

    Hermes Agent
    5c53b9d
  5. Filter hop-by-hop headers in build_upstream_headers and ensure Host header is explicitly set to PUBLIC_HOST

    Hermes Agent
    39538e8
  6. Refactor gateway proxy to pure transport layer: preserve multiple Set-Cookie headers using multi_items() and remove ad-hoc body string replacements

    Hermes Agent
    6167f56
  7. Rewrite internal localhost URLs to PUBLIC_ORIGIN across text, json, and html responses

    Hermes Agent
    8231581
  8. Refine architecture: Add Redis server, OmniRoute multi-port listeners (20128/20129/20132), safe SQLite backup, and OMNIROUTE_BASE_PATH

    Hermes Agent
    98d2cb8
  9. Update gateway retry card to dynamically display target service name during startup

    Hermes Agent
    c6dd5de
  10. Add production OmniRoute build stage, gateway router, persistent symlinking, and Open WebUI pre-configuration to Dockerfile and entrypoint

    Hermes Agent
    9f0981f
  11. Clean up all legacy OmniRoute and OpenCode references across configuration, gateway, reverse proxy, index landing, and mobile app directory

    Hermes Agent
    4e89d90

  1. fix: handle upstream initialization phase with auto-refreshing loading screen to eliminate 502 startup errors

    Hermes Agent
    c0491f7
  2. fix: resolve Socket.IO 403 Forbidden with query string preservation and prevent Referer catch-all misrouting

    Hermes Agent
    2cd48d2
  3. refactor: modularize proxy gateway into 5 dedicated service routers (opencode, openwebui, omniroute, jellyfin, tg_stream) with location redirect fix & websocket CORS allow

    Hermes Agent
    8cd4896