mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
Trim surrounding whitespace from `OPENAI_API_KEY` and reject empty values or characters outside printable, non-space ASCII with `Invalid API key format`. Use the validated key in the request's `Authorization` header. GitOrigin-RevId: 61da9b4989b7cfbceb247ffbbeb6f6efd8413598