Reference
HTTP
Reference for @tailrace/http - shared OpenAI-compat body, SSE, and 422 helpers.
@tailrace/http provides the shared OpenAI-compatible pipeline used by Hono, Express, Fastify,
NestJS, and Encore adapters. No host peers.
Install
pnpm add @tailrace/core @tailrace/httpKey exports
| Export | Description |
|---|---|
runOpenAiCompatRequestCheck | Check/rewrite chat request body |
runOpenAiCompatJsonResponseCheck | Check/rewrite completion JSON |
createOpenAiCompatSseTransform | SSE carry-buffer transform |
policyViolationBody / POLICY_VIOLATION_STATUS | 422 body builder |
Prefer a host package unless you are building a custom adapter: Hono · Express · Fastify · NestJS · Encore.
Spec: repo docs/integrations.md §9.