Skip to content

Commit

Permalink
Merge pull request #160 from alipay/dev_fix_as_langchain
Browse files Browse the repository at this point in the history
fix as langchain
  • Loading branch information
EdwinInAu authored Sep 9, 2024
2 parents 91f683d + 9b694d3 commit ef66fb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions agentuniverse/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,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):
Expand Down

0 comments on commit ef66fb3

Please sign in to comment.