mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-22 00:00:50 +00:00
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>
21 lines
652 B
JSON
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 }
|
|
}
|
|
}
|