Skip to content

Commit

Permalink
hotfix: embedding server stays compatible with TEI
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Mar 21, 2024
1 parent 492b835 commit b8db45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedding-server/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async def sparse_encode(encodingRequest: SparseEncodeRequest, Authorization: Ann
content = list(map(lambda pair: dict(index=pair[0], value=pair[1]), zip(indices, values)))

return JSONResponse(
content=content,
content=[content],
status_code=200,
)

Expand Down

0 comments on commit b8db45b

Please sign in to comment.