Skip to content

Add Anthropic Messages & OpenAI Responses API examples#257

Merged
ericflo merged 1 commit intomainfrom
ce/integrate-anthropic-responses-api
Apr 10, 2026
Merged

Add Anthropic Messages & OpenAI Responses API examples#257
ericflo merged 1 commit intomainfrom
ce/integrate-anthropic-responses-api

Conversation

@ericflo
Copy link
Copy Markdown
Owner

@ericflo ericflo commented Apr 10, 2026

What

Adds integration examples for the two other API formats ModelRelay supports but weren't documented on the /integrate page.

Changes

  • New Anthropic Messages API section (/v1/messages) with curl, Python SDK, and streaming examples
  • New OpenAI Responses API section (/v1/responses) with curl, Python SDK, and streaming examples
  • Response Formats section now shows all three API response shapes (Chat Completions, Messages, Responses) plus their SSE streaming formats
  • Live Demo now has an API format dropdown to test Chat Completions, Messages, or Responses API
  • Quick Reference updated to list all supported endpoints: /v1/chat/completions, /v1/messages, /v1/responses, /v1/models
  • Reorganized "Languages & SDKs" and "Streaming" into a single "OpenAI Chat Completions" section with inline stream tabs

Why

ModelRelay proxies /v1/messages and /v1/responses alongside /v1/chat/completions (all confirmed in http.rs lines 96-98), but the integrate page only showed Chat Completions. Users had no way to discover the Anthropic or Responses API compatibility — a major selling point that was completely invisible.

Testing

  • cargo build — clean
  • cargo test — all pass
  • cargo clippy — no warnings

Base automatically changed from ce/cloud-ux-overhaul to main April 10, 2026 04:39
@ericflo ericflo force-pushed the ce/integrate-anthropic-responses-api branch from 91254be to 47401e9 Compare April 10, 2026 04:39
@ericflo ericflo merged commit d27b6d7 into main Apr 10, 2026
12 checks passed
@ericflo ericflo deleted the ce/integrate-anthropic-responses-api branch April 10, 2026 04:42
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