Multi model from api
This commit is contained in:
parent
15d74420f7
commit
0a894237bb
5 changed files with 62 additions and 12 deletions
|
|
@ -13,8 +13,19 @@ MODELS = {
|
|||
"qwen/qwen3-235b-a22b-2507",
|
||||
"deepseek/deepseek-r1-0528",
|
||||
"moonshotai/kimi-k2",
|
||||
"x-ai/grok-4",
|
||||
"openai/gpt-4.1",
|
||||
"anthropic/claude-sonnet-4",
|
||||
"meta-llama/llama-4-maverick",
|
||||
"mistralai/devstral-medium",
|
||||
"qwen/qwen3-coder",
|
||||
"google/gemini-2.5-pro",
|
||||
}
|
||||
|
||||
async def get_models(request: Request):
|
||||
"""GET /models -> {models: [...]}"""
|
||||
return JSONResponse({"models": list(MODELS)})
|
||||
|
||||
async def create_chat(request: Request):
|
||||
"""POST /chats -> {chat_id, model}"""
|
||||
body = await request.json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue