Files
anyllm-proxy/fixtures/anthropic/messages_basic.json
whit3rabbitandClaude Opus 4.6 f2e3ed15f4 Initial commit: Anthropic-to-OpenAI API translation proxy
Rust workspace with two crates:
- translator: pure, IO-free mapping between Anthropic Messages API and OpenAI Chat Completions
- proxy: axum HTTP server with auth, streaming SSE, retry/backoff, concurrency limits

169 tests passing (unit, golden fixture, integration).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 13:25:43 -05:00

21 lines
652 B
JSON

{
"request": {
"model": "claude-opus-4-6",
"max_tokens": 256,
"system": "You are a concise assistant.",
"messages": [
{ "role": "user", "content": "Explain what an LLM proxy does." }
]
},
"response": {
"id": "msg_01XFDUDYJgAACzvnptvVoYEL",
"type": "message",
"role": "assistant",
"content": [{ "type": "text", "text": "An LLM proxy sits between a client and a language model API, translating requests and responses between different API formats." }],
"model": "claude-opus-4-6",
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": { "input_tokens": 25, "output_tokens": 30 }
}
}