Skip to content

Commit

Permalink
Fix Issue langchain-ai#20453: Change _call_eas to return bytes instea…
Browse files Browse the repository at this point in the history
…d of str
  • Loading branch information
your-username committed Jul 11, 2024
1 parent 70a79f4 commit 4d0d05c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _call_eas(self, query_body: dict) -> Any:
f" and message {response.text}"
)

return response.text
return response.content

def _call_eas_stream(self, query_body: dict) -> Any:
"""Generate text from the eas service."""
Expand Down

0 comments on commit 4d0d05c

Please sign in to comment.