• rickylin047's avatar
    fix(openai): convert string input to array for Codex OAuth responses endpoint · 9f1f203b
    rickylin047 authored
    The ChatGPT backend-api codex/responses endpoint requires `input` to be
    an array, but the OpenAI Responses API spec allows it to be a plain string.
    When a client sends a string input, sub2api now converts it to the expected
    message array format. Empty/whitespace-only strings become an empty array
    to avoid triggering a 400 "Input must be a list" error.
    9f1f203b
openai_codex_transform_test.go 8.96 KB