Skip to content

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

add config in provider

geekanfe52bf603254
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.py
index 90a61085f..36d6f6d77 100644
--- a/metagpt/provider/openai_api.py
+++ b/metagpt/provider/openai_api.py
@@ -99,7 +99,7 @@ class OpenAILLM(BaseLLM):
"max_tokens": self._get_max_tokens(messages),
"n": 1,
# "stop": None, # default it's None and gpt4-v can't have this one
- "temperature": 0.3,
+ "temperature": self.config.temperature,
"model": self.model,
"timeout": max(self.config.timeout, timeout),
}