mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 22:16:41 +00:00
OpenAI-compatible endpoints like /chat/completions require Authorization header with 'Bearer ' prefix. Previously the token was sent without prefix, causing 401 Unauthorized errors. Auto-detects endpoint type based on URL path and formats header accordingly. Fixes #61