Skip to content

Commit c78b532

Browse files
authored
Bugfix/Add orgId for file fetching from messages (#4732)
add orgId for file fetching from messages
1 parent 7a5368c commit c78b532

File tree

2 files changed

+3
-1
lines changed
  • packages

2 files changed

+3
-1
lines changed

packages/components/nodes/agentflow/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ export const getPastChatHistoryImageMessages = async (
343343
const nodeOptions = {
344344
retrieveAttachmentChatId: true,
345345
chatflowid: options.chatflowid,
346-
chatId: options.chatId
346+
chatId: options.chatId,
347+
orgId: options.orgId
347348
}
348349
let fileInputFieldFromMimeType = 'txtFile'
349350
fileInputFieldFromMimeType = mapMimeTypeToInputField(upload.mime)

packages/server/src/services/openai-realtime/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ const buildAndInitTool = async (chatflowid: string, _chatId?: string, _apiMessag
146146
const agent = await nodeInstance.init(nodeToExecuteData, '', {
147147
chatflowid,
148148
chatId,
149+
orgId,
149150
appDataSource: appServer.AppDataSource,
150151
databaseEntities,
151152
analytic: chatflow.analytic

0 commit comments

Comments
 (0)