The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Community[patch]: Missing "stream" parameter in cloudflare_workersai (#23987)
Paolo Ráez0dec72cab08c
diff --git a/libs/community/langchain_community/llms/cloudflare_workersai.py b/libs/community/langchain_community/llms/cloudflare_workersai.pyindex 54b41418c4..314a32223e 100644--- a/libs/community/langchain_community/llms/cloudflare_workersai.py+++ b/libs/community/langchain_community/llms/cloudflare_workersai.py@@ -70,7 +70,9 @@ class CloudflareWorkersAI(LLM):"""Call Cloudflare Workers API"""headers = {"Authorization": f"Bearer {self.api_token}"}data = {"prompt": prompt, "stream": self.streaming, **params}- response = requests.post(self.endpoint_url, headers=headers, json=data)+ response = requests.post(+ self.endpoint_url, headers=headers, json=data, stream=self.streaming+ )return responsedef _process_response(self, response: requests.Response) -> str: