Merge branch 'dev' into remove-ollama

This commit is contained in:
Timothy Jaeryang Baek
2024-08-07 23:06:11 +02:00
committed by GitHub
17 changed files with 497 additions and 749 deletions

View File

@@ -359,8 +359,10 @@ async def generate_chat_completion(
):
idx = 0
payload = {**form_data}
payload.pop("metadata", None)
if "metadata" in payload:
del payload["metadata"]
model_id = form_data.get("model")
model_info = Models.get_model_by_id(model_id)