Skip to content

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.

Error output
Input should be a valid string

Codex'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.

  1. Upgrade CC Switch to v3.20.4.

  2. 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.

ToolCodex
Version3.19.0 - 3.20.3(受影响);v3.20.4 已修复
PlatformsmacOS

(No FAQ yet)

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.