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

Function postChat

apps/web/lib/fe/chat-utils.ts:13–23  ·  view source on GitHub ↗
(
  orgIdOrSlug: string,
  req: ChatCreateRequest,
)

Source from the content-addressed store, hash-verified

11import { Id } from "@repo/core";
12
13export const postChat = async (
14 orgIdOrSlug: string,
15 req: ChatCreateRequest,
16): Promise<ChatResponse> => {
17 return (
18 await post<ChatCreateRequest, ChatResponse>(
19 organizationsIdOrSlugChatApiPath(orgIdOrSlug),
20 req,
21 )
22 ).response;
23};
24
25export const postChatMessage = async (
26 chatId: Id<ChatResponse>,

Callers 2

handleSubmitFunction · 0.90
handleSubmitFunction · 0.90

Calls 1

Tested by

no test coverage detected