embeddings function added 100% OpenAI compatible

This commit is contained in:
hdnh2006
2025-02-14 17:57:47 +01:00
parent 2017856791
commit 0afe972bc6
2 changed files with 79 additions and 0 deletions
+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