Skip to content

Commit b2dcdab

Browse files
authored
Chore/ChatflowID CamelCase (#5205)
* add acceptVariable property to vector store metadata filter * add accepVariadd acceptVariable property to other json fields * add camelcase chatflowId to flowConfig
1 parent 6885c38 commit b2dcdab

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

packages/server/src/Interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ export interface ICustomTemplate {
370370

371371
export interface IFlowConfig {
372372
chatflowid: string
373+
chatflowId: string
373374
chatId: string
374375
sessionId: string
375376
chatHistory: IMessage[]

packages/server/src/utils/buildAgentGraph.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const buildAgentGraph = async ({
8989
chatId,
9090
sessionId,
9191
chatflowid,
92+
chatflowId: chatflowid,
9293
logger,
9394
analytic,
9495
appDataSource,

packages/server/src/utils/buildAgentflow.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ const executeNode = async ({
10111011
const chatHistory = [...pastChatHistory, ...runtimeChatHistory]
10121012
const flowConfig: IFlowConfig = {
10131013
chatflowid: chatflow.id,
1014+
chatflowId: chatflow.id,
10141015
chatId,
10151016
sessionId,
10161017
apiMessageId,
@@ -1094,6 +1095,7 @@ const executeNode = async ({
10941095
chatId,
10951096
sessionId,
10961097
chatflowid: chatflow.id,
1098+
chatflowId: chatflow.id,
10971099
apiMessageId: flowConfig.apiMessageId,
10981100
logger,
10991101
appDataSource,

packages/server/src/utils/buildChatflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ export const executeFlow = async ({
480480

481481
const flowConfig: IFlowConfig = {
482482
chatflowid,
483+
chatflowId: chatflow.id,
483484
chatId,
484485
sessionId,
485486
chatHistory,

0 commit comments

Comments
 (0)