Merge pull request #7182 from michaelpoluektov/fix/tools-metadata

fix: Fix tools metadata
This commit is contained in:
Timothy Jaeryang Baek
2024-11-21 16:32:08 -08:00
committed by GitHub
6 changed files with 110 additions and 235 deletions

View File

@@ -1313,7 +1313,6 @@ async def generate_chat_completions(
@app.post("/api/chat/completed")
async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
model_list = await get_all_models()
models = {model["id"]: model for model in model_list}