Update handler.py to use prepared_request.body

This commit is contained in:
Andrew Smith 2025-03-18 10:23:32 +11:00 committed by GitHub
parent ce9b6f49bb
commit a92e99e946
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,7 +213,7 @@ class SagemakerLLM(BaseAWSLLM):
sync_response = sync_handler.post( sync_response = sync_handler.post(
url=prepared_request.url, url=prepared_request.url,
headers=prepared_request.headers, # type: ignore headers=prepared_request.headers, # type: ignore
json=data, data=prepared_request.body,
stream=stream, stream=stream,
) )