MCPcopy Create free account
hub / github.com/SecureAI-Tools/SecureAI-Tools / postChatMessage

Function postChatMessage

apps/web/lib/fe/chat-utils.ts:25–35  ·  view source on GitHub ↗
(
  chatId: Id<ChatResponse>,
  req: ChatMessageCreateRequest,
)

Source from the content-addressed store, hash-verified

23};
24
25export const postChatMessage = async (
26 chatId: Id<ChatResponse>,
27 req: ChatMessageCreateRequest,
28): Promise<ChatMessageResponse> => {
29 return (
30 await post<ChatMessageCreateRequest, ChatMessageResponse>(
31 postChatMessagesApiPath(chatId),
32 req,
33 )
34 ).response;
35};

Callers 2

handleSubmitFunction · 0.90
handleSubmitFunction · 0.90

Calls 1

postChatMessagesApiPathFunction · 0.90

Tested by

no test coverage detected