The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix chatperplexity: remove 'stream' from params in _stream method (#29173)
ThomasSaulou349b5c91c2a5
diff --git a/libs/community/langchain_community/chat_models/perplexity.py b/libs/community/langchain_community/chat_models/perplexity.pyindex d168b1363e..f5a58def0e 100644--- a/libs/community/langchain_community/chat_models/perplexity.py+++ b/libs/community/langchain_community/chat_models/perplexity.py@@ -217,7 +217,7 @@ class ChatPerplexity(BaseChatModel):message_dicts, params = self._create_message_dicts(messages, stop)params = {**params, **kwargs}default_chunk_class = AIMessageChunk-+ params.pop("stream", None)if stop:params["stop_sequences"] = stopstream_resp = self.client.chat.completions.create(