fix: /embed endpoint

This commit is contained in:
Timothy Jaeryang Baek 2024-11-28 17:56:02 -08:00
parent ea883b2ed4
commit 53fbb19fa0

View File

@ -706,7 +706,7 @@ async def generate_embeddings(
url_idx: Optional[int] = None,
user=Depends(get_verified_user),
):
return generate_ollama_batch_embeddings(form_data, url_idx)
return await generate_ollama_batch_embeddings(form_data, url_idx)
@app.post("/api/embeddings")