Skip to content

Commit

Permalink
fix as langchain
Browse files Browse the repository at this point in the history
  • Loading branch information
weizjajj committed Sep 9, 2024
1 parent 55837b5 commit 9b694d3
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 @@ -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):
Expand Down

0 comments on commit 9b694d3

Please sign in to comment.