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: update `n` type in OpenAI Model (#1168)

Wendong-Fan26be974a228c
diff --git a/camel/models/openai_model.py b/camel/models/openai_model.py
index 02d228476..4ba5e8f78 100644
--- a/camel/models/openai_model.py
+++ b/camel/models/openai_model.py
@@ -123,7 +123,7 @@ class OpenAIModel(BaseModelBackend):
self.model_config_dict["temperature"] = 1.0
self.model_config_dict["top_p"] = 1.0
- self.model_config_dict["n"] = 1.0
+ self.model_config_dict["n"] = 1
self.model_config_dict["presence_penalty"] = 0.0
self.model_config_dict["frequency_penalty"] = 0.0