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

Function postStreaming

apps/web/lib/fe/api.ts:38–48  ·  view source on GitHub ↗
(params: {
  input: RequestInfo;
  req: REQ;
  onGeneratedChunk?: (chunk: string, generatedContent: string) => void;
  onFinish?: (generatedContent: string) => void;
})

Source from the content-addressed store, hash-verified

36}
37
38export async function postStreaming<REQ>(params: {
39 input: RequestInfo;
40 req: REQ;
41 onGeneratedChunk?: (chunk: string, generatedContent: string) => void;
42 onFinish?: (generatedContent: string) => void;
43}): Promise<void> {
44 return await makeRequestStreaming<REQ>({
45 method: "POST",
46 ...params,
47 });
48}
49
50export async function patch<REQ, RES>(
51 input: RequestInfo,

Callers 2

indexDocumentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected