The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ChatContentText } from "@openrouter/sdk/models";
let value: ChatContentText = {
text: "Hello, world!",
type: "text",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
cacheControl | models.ChatContentCacheControl | :heavy_minus_sign: | Cache control for the content part | {"ttl": "5m","type": "ephemeral"} |
text | string | :heavy_check_mark: | N/A | |
type | models.ChatContentTextType | :heavy_check_mark: | N/A |