The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ResponseFormatJSONSchema } from "@openrouter/sdk/models";
let value: ResponseFormatJSONSchema = {
type: "json_schema",
jsonSchema: {
name: "<value>",
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | ”json_schema” | :heavy_check_mark: | N/A |
jsonSchema | models.JSONSchemaConfig | :heavy_check_mark: | N/A |