Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Update openai_api.py

YangQianli924b2db708fd9e
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.py
index f53776adb..0a423f210 100644
--- a/metagpt/provider/openai_api.py
+++ b/metagpt/provider/openai_api.py
@@ -116,7 +116,7 @@ class OpenAILLM(BaseLLM):
kwargs = {
"messages": messages,
"max_tokens": self._get_max_tokens(messages),
- "n": 1,
+ # "n": 1, # Some services do not provide this parameter, such as mistral
# "stop": None, # default it's None and gpt4-v can't have this one
"temperature": self.config.temperature,
"model": self.model,