app/routers/embed_router.py aktualisiert
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 2s

This commit is contained in:
Lars 2025-09-02 10:29:45 +02:00
parent 7192ead996
commit 3dea8ad999

View File

@ -1,4 +1,3 @@
from __future__ import annotations
from fastapi import APIRouter
from pydantic import BaseModel, Field
@ -19,4 +18,4 @@ class EmbedResponse(BaseModel):
def post_embed(req: EmbedRequest):
vecs = embed_texts(req.texts)
dim = len(vecs[0]) if vecs else 0
return {"vectors": vecs, "dim": dim}
return {"vectors": vecs, "dim": dim}