Skip to content

Commit

Permalink
Ensure request body is always returned as bytes (#372)
Browse files Browse the repository at this point in the history
This updates _get_inference_request to always return the request body as bytes, 
as per the InferenceServerClient .generate_request_body docstring.
  • Loading branch information
willfrey authored Aug 14, 2023
1 parent 7a7cd2a commit 993bb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/library/tritonclient/http/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ def _get_inference_request(
)
return request_body, json_size

return request_body, None
return request_body.encode(), None

0 comments on commit 993bb7d

Please sign in to comment.