Skip to content

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

feat: + safe code

莘权 马9da450f8a772
diff --git a/metagpt/config.py b/metagpt/config.py
index 4cae79b17..5944fef57 100644
--- a/metagpt/config.py
+++ b/metagpt/config.py
@@ -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)