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

Function postChatMessage

apps/web/lib/fe/components/chat.tsx:471–481  ·  view source on GitHub ↗
(
  chatId: Id<ChatResponse>,
  req: ChatMessageCreateRequest,
)

Source from the content-addressed store, hash-verified

469}
470
471const postChatMessage = async (
472 chatId: Id<ChatResponse>,
473 req: ChatMessageCreateRequest,
474): Promise<ChatMessageResponse> => {
475 return (
476 await post<ChatMessageCreateRequest, ChatMessageResponse>(
477 postChatMessagesApiPath(chatId),
478 req,
479 )
480 ).response;
481};
482
483const indexDocument = async ({
484 collectionId,

Callers 1

ChatFunction · 0.70

Calls 1

postChatMessagesApiPathFunction · 0.90

Tested by

no test coverage detected