Skip to content

fix(gateway): support OpenAI non-stream responses - #45

Merged
drewstone merged 1 commit into
mainfrom
fix/openai-response-contract-20260902
Sep 2, 2026
Merged

fix(gateway): support OpenAI non-stream responses#45
drewstone merged 1 commit into
mainfrom
fix/openai-response-contract-20260902

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

What changed

  • Return a JSON OpenAI chat.completion when stream is omitted or false.
  • Preserve SSE when stream: true.
  • Surface sandbox input-required prompts on both OpenAI response modes.
  • Add a host-configured API-key purchase URL with the historical baseUrl path as fallback.

Proof

  • Node 24.13.0: pnpm test — 26 files, 453 tests; pnpm typecheck; pnpm build.
  • Node 22.23.2: pnpm test — 26 files, 453 tests; pnpm typecheck; pnpm build.

@drewstone
drewstone merged commit 5e8f5e8 into main Sep 2, 2026
3 checks 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