mirror of
https://github.com/katanemo/plano.git
synced 2026-04-27 09:46:28 +02:00
36 lines
1.1 KiB
ReStructuredText
36 lines
1.1 KiB
ReStructuredText
### Code generation query (OpenAI format) — expects anthropic/claude-sonnet
|
|
POST http://localhost:12000/routing/v1/chat/completions
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"model": "gpt-4o-mini",
|
|
"messages": [{"role": "user", "content": "Write a Python function for binary search"}]
|
|
}
|
|
|
|
### Complex reasoning query (OpenAI format) — expects openai/gpt-4o
|
|
POST http://localhost:12000/routing/v1/chat/completions
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"model": "gpt-4o-mini",
|
|
"messages": [{"role": "user", "content": "Analyze the trade-offs between microservices and monolithic architecture"}]
|
|
}
|
|
|
|
### Simple query — no routing match, expects default model
|
|
POST http://localhost:12000/routing/v1/chat/completions
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"model": "gpt-4o-mini",
|
|
"messages": [{"role": "user", "content": "Hello"}]
|
|
}
|
|
|
|
### Code generation query (Anthropic format)
|
|
POST http://localhost:12000/routing/v1/messages
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"model": "claude-sonnet-4-20250514",
|
|
"max_tokens": 1024,
|
|
"messages": [{"role": "user", "content": "Write a REST API in Go using Gin"}]
|
|
}
|