@dbx-tools/openapi-model-proxy
v0.9.32
Published
Generated OpenAPI schema and client for dbx-tools-model-proxy
Readme
@dbx-tools/openapi-model-proxy
Generated OpenAPI 3.1 schema and openapi-fetch client for
dbx-tools-model-proxy.
Key Features
- generated from the live LiteLLM/FastAPI schema plus dbx-tools extensions;
- typed REST paths for health, profile controls, rate-limit controls, and OpenAI-compatible model routes;
- browser-safe TypeScript types and an
openapi-fetchclient factory; - generated and committed through
bun run openapi.
Use
import { createApiClient } from "@dbx-tools/openapi-model-proxy";
const client = createApiClient({
baseUrl: "http://127.0.0.1:4000",
});
const { data } = await client.GET("/api/healthz");The preferred live OpenAPI document is /openapi.json; Swagger is served at
the root route.
Streaming /v1 responses remain raw streams. openapi-fetch does not parse
server-sent events.
