free-claude-code/api
Cursor Agent e9beb28897 fix: validate API keys at provider init to prevent 403 'authorization missing'
When NVIDIA_NIM_API_KEY or OPENROUTER_API_KEY is empty or not set,
the proxy forwarded requests without a valid Authorization header,
causing providers to return 403 with 'Header of type authorization
was missing'.

Now fail fast with HTTP 503 and a clear message telling users to add
the key to .env, with links to obtain keys.

Fixes #29

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-17 07:33:56 +00:00
..
models Refactor done using GLM-5 2026-02-15 21:58:03 -08:00
__init__.py Major refactor done by itself 2026-01-29 14:40:08 -08:00
app.py Add plans directory support to CLI session management 2026-02-16 15:34:26 -08:00
command_utils.py Phase 7 & 8: Routes optimization refactor and request utils split 2026-02-15 01:41:35 +00:00
dependencies.py fix: validate API keys at provider init to prevent 403 'authorization missing' 2026-02-17 07:33:56 +00:00
detection.py Phase 7 & 8: Routes optimization refactor and request utils split 2026-02-15 01:41:35 +00:00
optimization_handlers.py Refactor done using GLM-5 2026-02-15 21:58:03 -08:00
request_utils.py Refactor done using GLM-5 2026-02-15 21:58:03 -08:00
routes.py Phase 4-6: Dead code removal, performance, minor fixes 2026-02-17 02:01:01 +00:00