Skip to content

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

update config2

better62952e709cc26ea
diff --git a/metagpt/config2.py b/metagpt/config2.py
index eb4c38368..09ff6d83f 100644
--- a/metagpt/config2.py
+++ b/metagpt/config2.py
@@ -132,10 +132,7 @@ class Config(CLIParams, YamlModel):
self.other = other
def get_other(self, key: str, default_value: str = None):
- if default_value is None:
- return self.other.get(key)
- else:
- return self.other.get(key, default_value)
+ return self.other.get(key, default_value)
def get_openai_llm(self) -> Optional[LLMConfig]:
"""Get OpenAI LLMConfig by name. If no OpenAI, raise Exception"""