add camelcase chatflowId to flowConfig
This commit is contained in:
parent
bca326f447
commit
fc0427e8ff
|
|
@ -370,6 +370,7 @@ export interface ICustomTemplate {
|
||||||
|
|
||||||
export interface IFlowConfig {
|
export interface IFlowConfig {
|
||||||
chatflowid: string
|
chatflowid: string
|
||||||
|
chatflowId: string
|
||||||
chatId: string
|
chatId: string
|
||||||
sessionId: string
|
sessionId: string
|
||||||
chatHistory: IMessage[]
|
chatHistory: IMessage[]
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ export const buildAgentGraph = async ({
|
||||||
chatId,
|
chatId,
|
||||||
sessionId,
|
sessionId,
|
||||||
chatflowid,
|
chatflowid,
|
||||||
|
chatflowId: chatflowid,
|
||||||
logger,
|
logger,
|
||||||
analytic,
|
analytic,
|
||||||
appDataSource,
|
appDataSource,
|
||||||
|
|
|
||||||
|
|
@ -1011,6 +1011,7 @@ const executeNode = async ({
|
||||||
const chatHistory = [...pastChatHistory, ...runtimeChatHistory]
|
const chatHistory = [...pastChatHistory, ...runtimeChatHistory]
|
||||||
const flowConfig: IFlowConfig = {
|
const flowConfig: IFlowConfig = {
|
||||||
chatflowid: chatflow.id,
|
chatflowid: chatflow.id,
|
||||||
|
chatflowId: chatflow.id,
|
||||||
chatId,
|
chatId,
|
||||||
sessionId,
|
sessionId,
|
||||||
apiMessageId,
|
apiMessageId,
|
||||||
|
|
@ -1094,6 +1095,7 @@ const executeNode = async ({
|
||||||
chatId,
|
chatId,
|
||||||
sessionId,
|
sessionId,
|
||||||
chatflowid: chatflow.id,
|
chatflowid: chatflow.id,
|
||||||
|
chatflowId: chatflow.id,
|
||||||
apiMessageId: flowConfig.apiMessageId,
|
apiMessageId: flowConfig.apiMessageId,
|
||||||
logger,
|
logger,
|
||||||
appDataSource,
|
appDataSource,
|
||||||
|
|
|
||||||
|
|
@ -480,6 +480,7 @@ export const executeFlow = async ({
|
||||||
|
|
||||||
const flowConfig: IFlowConfig = {
|
const flowConfig: IFlowConfig = {
|
||||||
chatflowid,
|
chatflowid,
|
||||||
|
chatflowId: chatflow.id,
|
||||||
chatId,
|
chatId,
|
||||||
sessionId,
|
sessionId,
|
||||||
chatHistory,
|
chatHistory,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue