feat: remove Context.options

This commit is contained in:
莘权 马 2024-01-12 17:43:14 +08:00
parent 1e523f6840
commit b858cc7d83
3 changed files with 11 additions and 15 deletions

View file

@ -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()