Skip to content

Commit

Permalink
Bugfix/Returned message array (FlowiseAI#3065)
Browse files Browse the repository at this point in the history
add fix for returned message array
  • Loading branch information
HenryHengZJ authored and patrickalvesexperian committed Sep 3, 2024
1 parent cdb4b6f commit 45e0c64
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ class ChatPromptTemplate_Prompts implements INode {
HumanMessagePromptTemplate.fromTemplate(humanMessagePrompt)
])

if ((messageHistory && messageHistory === 'messageHistoryCode') || (selectedTab === 'messageHistoryCode' && messageHistoryCode)) {
if (
(messageHistory && messageHistory === 'messageHistoryCode' && messageHistoryCode) ||
(selectedTab === 'messageHistoryCode' && messageHistoryCode)
) {
const appDataSource = options.appDataSource as DataSource
const databaseEntities = options.databaseEntities as IDatabaseEntity
const vm = await getVM(appDataSource, databaseEntities, nodeData, {})
Expand Down

0 comments on commit 45e0c64

Please sign in to comment.