mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
feat: + safe code
This commit is contained in:
parent
14068cdc19
commit
9da450f8a7
1 changed files with 2 additions and 0 deletions
|
|
@ -131,6 +131,8 @@ class Config(metaclass=Singleton):
|
|||
|
||||
def set_context(self, options: dict):
|
||||
"""Update current config"""
|
||||
if not options:
|
||||
return
|
||||
opts = deepcopy(OPTIONS.get())
|
||||
opts.update(options)
|
||||
OPTIONS.set(opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue