feat: replace global CONTEXT with Config()

fixbug: unit test
This commit is contained in:
莘权 马 2024-01-22 17:13:20 +08:00
parent ff314388bb
commit e8b3e6762b
15 changed files with 44 additions and 33 deletions

View file

@ -95,7 +95,3 @@ class Context(BaseModel):
if llm.cost_manager is None:
llm.cost_manager = self.cost_manager
return llm
# Global context, not in Env
CONTEXT = Context()