diff --git a/agentuniverse/llm/llm.py b/agentuniverse/llm/llm.py index 680832bf..8bd038e4 100644 --- a/agentuniverse/llm/llm.py +++ b/agentuniverse/llm/llm.py @@ -159,9 +159,7 @@ def as_langchain_runnable(self, params=None) -> Runnable: """Get the langchain llm class.""" if params is None: params = {} - if self.langchain_instance is None: - self.langchain_instance = self.as_langchain() - return self.langchain_instance.bind(**params) + return self.as_langchain().bind(**params) @trace_llm def call(self, *args: Any, **kwargs: Any):