embeddings function added 100% OpenAI compatible

This commit is contained in:
hdnh2006 committed 2025-02-14 17:57:47 +01:00
1 parent 2017856791
commit 0afe972bc6
2 files changed
+79

No files matched your search

+5
View File
@@ -1038,6 +1038,11 @@ async def list_tasks_endpoint(user=Depends(get_verified_user)):
return {"tasks": list_tasks()} # Use the function from tasks.py
@app.post("/api/embeddings")
async def api_embeddings(request: Request, user=Depends(get_verified_user)):
return await openai.generate_embeddings(request=request, user=user)
##################################
#
# Config Endpoints