fixing /v1/embedding ollama notations
This commit is contained in:
parent
8aef941385
commit
9f90bc9cd0
1 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue