MCPcopy Create free account
hub / github.com/pollinations/pollinations / handleTextContentLocal

Function handleTextContentLocal

gen.pollinations.ai/src/text/handler.ts:374–384  ·  view source on GitHub ↗
(
    c: TextContext,
    body: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

372}
373
374export async function handleTextContentLocal(
375 c: TextContext,
376 body: Record<string, unknown>,
377): Promise<Response> {
378 const req = createExpressLikeRequest(c, body, c.req.path);
379 const requestData = prepareRequestParameters(
380 getRequestData(req),
381 c.var.model.definition,
382 );
383 return generateTextResponse(c, requestData, true);
384}
385
386export async function handleSimpleTextLocal(
387 c: TextContext,

Callers 1

proxy.tsFile · 0.90

Calls 4

createExpressLikeRequestFunction · 0.85
prepareRequestParametersFunction · 0.85
getRequestDataFunction · 0.85
generateTextResponseFunction · 0.85

Tested by

no test coverage detected