Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: stream prop for groq (#1940)

JINO ROHIT50d186e36a1d
diff --git a/camel/models/groq_model.py b/camel/models/groq_model.py
index 546ca4faf..29c458bff 100644
--- a/camel/models/groq_model.py
+++ b/camel/models/groq_model.py
@@ -195,7 +195,10 @@ class GroqModel(BaseModelBackend):
@property
def stream(self) -> bool:
- r"""Returns whether the model supports streaming. But Groq API does
- not support streaming.
+ r"""Returns whether the model is in stream mode, which sends partial
+ results each time.
+
+ Returns:
+ bool: Whether the model is in stream mode.
"""
- return False
+ return self.model_config_dict.get("stream", False)