You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Guzzle client and middleware to log requests/responses in the \Anthropic\Transporters\HttpTransporter::requestObject() method, when calling $response->getBody()->getContents() the result is an empty string. This is a well known old issue guzzle/guzzle#1582
and it produce an error: Syntax error
Perhaps to solve the problem it is worth using cast to string or calling the __toString() method or rewind body
Description
When using the Guzzle client and middleware to log requests/responses in the \Anthropic\Transporters\HttpTransporter::requestObject() method, when calling $response->getBody()->getContents() the result is an empty string. This is a well known old issue guzzle/guzzle#1582
and it produce an error: Syntax error
Perhaps to solve the problem it is worth using cast to string or calling the __toString() method or rewind body
Steps To Reproduce
OpenAI PHP Client Version
v0.8.5
PHP Version
8.1.20
Notes
No response
The text was updated successfully, but these errors were encountered: