mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-03 04:42:38 +02:00
feat: remove Context.options
This commit is contained in:
parent
1e523f6840
commit
b858cc7d83
3 changed files with 11 additions and 15 deletions
|
|
@ -64,14 +64,6 @@ class Context(BaseModel):
|
|||
|
||||
_llm: Optional[BaseLLM] = None
|
||||
|
||||
@property
|
||||
def options(self):
|
||||
"""Return all key-values"""
|
||||
opts = self.config.model_dump()
|
||||
for k, v in self.kwargs:
|
||||
opts[k] = v # None value is allowed to override and disable the value from config.
|
||||
return opts
|
||||
|
||||
def new_environ(self):
|
||||
"""Return a new os.environ object"""
|
||||
env = os.environ.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue