mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 02:23:52 +02:00
refine code: use handle_exception function instead of in-function duplicate code frags
This commit is contained in:
parent
d3c135edff
commit
f1c6a7ebfb
12 changed files with 159 additions and 130 deletions
|
|
@ -137,6 +137,7 @@ class Config(metaclass=Singleton):
|
|||
continue
|
||||
configs.update(yaml_data)
|
||||
OPTIONS.set(configs)
|
||||
logger.info(f"Default OpenAI API Model: {self.openai_api_model}")
|
||||
|
||||
@staticmethod
|
||||
def _get(*args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue