mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 11:26:23 +02:00
update config2
This commit is contained in:
parent
91db2e3c46
commit
52e709cc26
1 changed files with 1 additions and 4 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue