diff --git a/libs/community/langchain_community/chat_models/pai_eas_endpoint.py b/libs/community/langchain_community/chat_models/pai_eas_endpoint.py index 48c7eb9b42a0e..395bd035c5989 100644 --- a/libs/community/langchain_community/chat_models/pai_eas_endpoint.py +++ b/libs/community/langchain_community/chat_models/pai_eas_endpoint.py @@ -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."""