Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
codingl2k1 committed Jan 22, 2025
1 parent 8fa9ad4 commit db226de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xinference/api/restful_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ async def create_embedding(self, request: Request) -> Response:

try:
embedding = await model.create_embedding(body.input, **kwargs)
embedding["model"] = model_uid # type: ignore
embedding["model"] = model_uid # type: ignore
return Response(embedding, media_type="application/json")
except Exception as e:
e = await self._get_model_last_error(model.uid, e)
Expand Down

0 comments on commit db226de

Please sign in to comment.