Skip to content

Commit

Permalink
docs: fix LangChainChat example (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
tongtie authored Sep 25, 2023
1 parent 140adb3 commit 44d1a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptcache/adapter/langchain_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class LangChainChat(BaseChatModel, BaseModel):
from langchain.chat_models import ChatOpenAI
from gptcache.adapter.langchain_models import LangChainChat
# run chat model with gptcache
chat = LangChainLLMs(chat=ChatOpenAI(temperature=0))
chat = LangChainChat(chat=ChatOpenAI(temperature=0))
chat([HumanMessage(content="Translate this sentence from English to French. I love programming.")])
"""

Expand Down

0 comments on commit 44d1a66

Please sign in to comment.