Skip to content

Commit

Permalink
Update langchain.py
Browse files Browse the repository at this point in the history
  • Loading branch information
toandaominh1997 authored Dec 1, 2024
1 parent 86c5a77 commit 09e42e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ def pipe(
self, user_message: str, model_id: str, messages: List[dict], body: dict
) -> Union[str, Generator, Iterator]:
self.index += 1
answer = chain.invoke({"question": user_message})
answer = self.chain.invoke({"question": user_message})
return answer

0 comments on commit 09e42e7

Please sign in to comment.