Skip to content

fix(backends): support OpenAI response format#366

Merged
drewstone merged 1 commit into
mainfrom
fix/openai-backend-response-format
Jun 23, 2026
Merged

fix(backends): support OpenAI response format#366
drewstone merged 1 commit into
mainfrom
fix/openai-backend-response-format

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Summary

  • add responseFormat to createOpenAICompatibleBackend and forward it as OpenAI response_format
  • export the new OpenAIChatResponseFormat type
  • bump @tangle-network/agent-runtime to 0.75.1 and regenerate API docs

Verification

  • pnpm exec vitest run tests/backends-openai-tools.test.ts tests/backends-openai-usage.test.ts tests/backends-fail-loud.test.ts tests/runtime.test.ts — 52 passed
  • pnpm run typecheck — passed
  • pnpm run lint — passed
  • pnpm run docs:check — passed
  • pnpm run build — passed
  • pnpm run verify:package — passed
  • env -u TANGLE_INTELLIGENCE_ENDPOINT -u TANGLE_INTELLIGENCE_URL -u TANGLE_INTELLIGENCE_OTLP_BASE -u TANGLE_OBSERVE_ENDPOINT -u OTEL_EXPORTER_OTLP_ENDPOINT -u OTEL_EXPORTER_OTLP_TRACES_ENDPOINT pnpm test — 115 files, 1114 passed, 1 skipped

Notes

This is additive. It lets consumers that need JSON-mode router calls use the shared runtime backend instead of direct /chat/completions calls.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved PR — 59c866ac

Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-23T00:24:57Z

@drewstone drewstone merged commit 12d2cb7 into main Jun 23, 2026
1 check passed
@drewstone drewstone deleted the fix/openai-backend-response-format branch June 23, 2026 00:27
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.

2 participants