Unverified Commit 6f142a51 authored by Atream's avatar Atream Committed by GitHub
Browse files

Merge pull request #813 from chenmz00/main

fix: list models API
parents 2753a4a6 b2ba795c
......@@ -13,7 +13,7 @@ router = APIRouter()
@router.get('/models', tags=['openai'])
async def list_models():
return [{"id": Config().model_name, "name": Config().model_name}]
return {"data": [{"id": Config().model_name, "name": Config().model_name}], "object": "list"}
@router.post('/chat/completions', tags=['openai'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment