fixing /v1/embedding ollama notations

This commit is contained in:
Alpha Nerd 2025-11-13 12:40:40 +01:00
parent 8aef941385
commit 9f90bc9cd0

View file

@ -1397,6 +1397,8 @@ async def openai_embedding_proxy(request: Request):
model = payload.get("model")
doc = payload.get("input")
if ":latest" in model:
model = model[:-7]
if not model:
raise HTTPException(