Skip to content

fix: accept string Responses content and prepare v0.3.1 - #9

Merged
Zesuy merged 3 commits into
mainfrom
codex/fix-issue-8-v0.3.1
Aug 10, 2026
Merged

fix: accept string Responses content and prepare v0.3.1#9
Zesuy merged 3 commits into
mainfrom
codex/fix-issue-8-v0.3.1

Conversation

@Zesuy

@Zesuy Zesuy commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Accept valid string-form OpenAI Responses input[].content values instead of rejecting the request as malformed.
  • Preserve string content unchanged while continuing to inspect rich function_call_output.output[] image blocks.
  • Normalize ordered user-context selection across Responses, Chat Completions, and Anthropic Messages.
  • Add regression fixtures and tests for string history, rich tool output, empty-turn boundaries, and release contracts.
  • Prepare the v0.3.1 version, packaging defaults, changelog, and documentation.

Root cause

The Responses image walker assumed every non-null input[].content value was an array. Standard Responses requests may use a string shorthand, so valid text-only requests were incorrectly terminated with HTTP 400 before reaching the upstream provider.

User impact

String-form Responses input now passes through unchanged. When a string-bearing item also includes a rich function output, image discovery and rewriting still run.

Validation

  • go test -count=1 ./...
  • go test -race -count=1 ./...
  • go vet ./...
  • go build ./...
  • ./scripts/verify-contracts.sh
  • ./scripts/package-smoke.sh
  • make verify-version-override
  • Docker Compose configuration validation
  • Docker BuildKit artifact build
  • CLIProxyAPI host E2E with mock providers
  • Independent regression and release-readiness review

Release notes

PR CI validates the Linux amd64 package artifact. The full Linux/macOS/Windows amd64/arm64 matrix remains part of the Release workflow. The billable live-provider test was not run.

Fixes #8

@Zesuy
Zesuy marked this pull request as ready for review August 10, 2026 06:23
@Zesuy
Zesuy merged commit fb30406 into main Aug 10, 2026
2 checks passed
@Zesuy
Zesuy deleted the codex/fix-issue-8-v0.3.1 branch August 10, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vision 插件为了扫描 input_image,把所有 input[].content 强制当作数组

1 participant