Skip to content

Commit 94cae3b

Browse files
authored
Bugfix/Supervisor Node AzureChatOpenAI (FlowiseAI#5448)
Integrate AzureChatOpenAI into the Supervisor node to handle user requests alongside ChatOpenAI. This enhancement allows for improved multi-agent conversation management.
1 parent 3fafd15 commit 94cae3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/components/nodes/multiagents/Supervisor/Supervisor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { ChatOpenAI } from '../../chatmodels/ChatOpenAI/FlowiseChatOpenAI'
2121
import { ChatAnthropic } from '../../chatmodels/ChatAnthropic/FlowiseChatAnthropic'
2222
import { addImagesToMessages, llmSupportsVision } from '../../../src/multiModalUtils'
2323
import { ChatGoogleGenerativeAI } from '../../chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI'
24+
import { AzureChatOpenAI } from '../../chatmodels/AzureChatOpenAI/FlowiseAzureChatOpenAI'
2425

2526
const sysPrompt = `You are a supervisor tasked with managing a conversation between the following workers: {team_members}.
2627
Given the following user request, respond with the worker to act next.
@@ -242,7 +243,7 @@ class Supervisor_MultiAgents implements INode {
242243
}
243244
}
244245
})
245-
} else if (llm instanceof ChatOpenAI) {
246+
} else if (llm instanceof ChatOpenAI || llm instanceof AzureChatOpenAI) {
246247
let prompt = ChatPromptTemplate.fromMessages([
247248
['system', systemPrompt],
248249
new MessagesPlaceholder('messages'),

0 commit comments

Comments
 (0)