FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
27.1k stars 13.94k forks source link

Fix llm instanceof wrong ChatOpenAI type #2726

Open mokeyish opened 5 days ago

mokeyish commented 5 days ago

update

import { ChatOpenAI } from '../../chatmodels/ChatOpenAI/FlowiseChatOpenAI'

to

import { ChatOpenAI } from '@langchain/openai'
HenryHengZJ commented 3 days ago

it is the correct import, FlowiseChatOpenAI is needed for multiModalOption

mokeyish commented 3 days ago

it is the correct import, FlowiseChatOpenAI is needed for multiModalOption

I see that the actual instance of llm is LanhchainChatOpenAI. Should logical OR be used here?

HenryHengZJ commented 2 days ago

it is the correct import, FlowiseChatOpenAI is needed for multiModalOption

I see that the actual instance of llm is LanhchainChatOpenAI. Should logical OR be used here?

which line?

mokeyish commented 2 days ago

it is the correct import, FlowiseChatOpenAI is needed for multiModalOption

I see that the actual instance of llm is LanhchainChatOpenAI. Should logical OR be used here?

which line?

https://github.com/FlowiseAI/Flowise/blob/15a416a58f4865a07b35443a563d546e31e92d47/packages/components/nodes/multiagents/Supervisor/Supervisor.ts#L225