fix: use the correct chat model
This commit is contained in:
parent
2235767d22
commit
74656b63ac
1 changed files with 2 additions and 2 deletions
|
|
@ -3,12 +3,12 @@ from typing import Any
|
|||
|
||||
from langchain import llms, requests
|
||||
from langchain.agents import agent_toolkits
|
||||
from langchain.llms.openai import OpenAIChat
|
||||
from langchain.chat_models import ChatOpenAI
|
||||
|
||||
from langflow.interface.importing.utils import import_class
|
||||
|
||||
llm_type_to_cls_dict = llms.type_to_cls_dict
|
||||
llm_type_to_cls_dict["openai-chat"] = OpenAIChat
|
||||
llm_type_to_cls_dict["openai-chat"] = ChatOpenAI
|
||||
|
||||
|
||||
## Memory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue