mirror of
https://github.com/katanemo/plano.git
synced 2026-05-01 03:46:35 +02:00
Use open-message-format to serialize and deserialize embeddings api (#18)
* Use open-message-format to serialize and deserialize embeddings api
This commit is contained in:
parent
a59c7df2a2
commit
cad38295bf
9 changed files with 1265 additions and 47 deletions
|
|
@ -41,8 +41,13 @@ async def embedding(req: EmbeddingRequest, res: Response):
|
|||
"index": len(data)
|
||||
})
|
||||
|
||||
usage = {
|
||||
"prompt_tokens": 0,
|
||||
"total_tokens": 0,
|
||||
}
|
||||
return {
|
||||
"data": data,
|
||||
"model": req.model,
|
||||
"object": "list"
|
||||
"object": "list",
|
||||
"usage": usage
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue