Multi model from api

This commit is contained in:
Sebarocks 2025-07-31 15:59:19 -04:00
parent 15d74420f7
commit 0a894237bb
5 changed files with 62 additions and 12 deletions

View file

@ -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()