mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
refine code: use handle_exception function instead of in-function duplicate code frags
This commit is contained in:
parent
8f64925290
commit
5c341cb053
12 changed files with 159 additions and 130 deletions
|
|
@ -139,6 +139,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