Skip to content

Fix OpenAI 400 errors by stripping unsupported stream_options#1

Merged
johannhipp merged 2 commits into
masterfrom
fix/strip-openai-stream-options
Mar 27, 2026
Merged

Fix OpenAI 400 errors by stripping unsupported stream_options#1
johannhipp merged 2 commits into
masterfrom
fix/strip-openai-stream-options

Conversation

@johannhipp
Copy link
Copy Markdown
Owner

Summary

  • Strip stream_options from OpenAI request bodies before forwarding to vibeproxy, which rejects this parameter with a 400 Bad Request
  • Log response bodies on non-2xx responses for easier debugging of upstream errors

Test plan

  • Verified OpenAI model calls now succeed through the proxy (previously returned 400 with {"detail":"Unsupported parameter: stream_options"})
  • Anthropic and Haiku calls unaffected

🤖 Generated with Claude Code

Johann Hipp 🐻 and others added 2 commits March 27, 2026 10:33
…options

Vibeproxy rejects OpenAI `/v1/responses` requests containing the
`stream_options` parameter. Strip it before forwarding. Also log
response bodies on non-2xx responses for easier debugging.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Set AMP_PROXY_DEBUG=1 to enable debug-level logs including request
headers and body previews, useful for diagnosing upstream issues.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@johannhipp johannhipp merged commit 4fd0749 into master Mar 27, 2026
1 check passed
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.

1 participant