MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / createChatMessage

Function createChatMessage

packages/server/src/services/chat-messages/index.ts:16–26  ·  view source on GitHub ↗
(chatMessage: Partial<IChatMessage>)

Source from the content-addressed store, hash-verified

14
15// Add chatmessages for chatflowid
16const createChatMessage = async (chatMessage: Partial<IChatMessage>) => {
17 try {
18 const dbResponse = await utilAddChatMessage(chatMessage)
19 return dbResponse
20 } catch (error) {
21 throw new InternalFlowiseError(
22 StatusCodes.INTERNAL_SERVER_ERROR,
23 `Error: chatMessagesService.createChatMessage - ${getErrorMessage(error)}`
24 )
25 }
26}
27
28// Get all chatmessages from chatflowid
29const getAllChatMessages = async (

Callers

nothing calls this directly

Calls 2

utilAddChatMessageFunction · 0.90
getErrorMessageFunction · 0.90

Tested by

no test coverage detected