Input should be a valid string: Codex image request
Quick fix
Upgrade CC Switch to v3.20.4; it converts image detail: "original" to a value accepted upstream.
Symptom
Section titled “Symptom”Input should be a valid stringCodex's `view_image` tool marks images with `detail: "original"`. When CC Switch converts Codex requests to Chat format, it passes this value through unchanged, but strict Chat upstreams accept only `auto`, `low`, or `high`, so the entire request is rejected.
Codex replays conversation history in later requests. Once the history contains one of these tool images, subsequent requests can keep failing. This was fixed in v3.20.4: proxy conversion rewrites `original` to `auto`. After upgrading, continue sending messages in the existing conversation to recover.
Upgrade CC Switch to v3.20.4.
After upgrading, continue sending messages in the existing conversation; the proxy converts the historical image `detail` value on every request, so no new conversation is needed.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.