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