ChatContentText - TypeScript SDK

ChatContentText type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Text content part

Example Usage

1import { ChatContentText } from "@openrouter/sdk/models";
2
3let value: ChatContentText = {
4 text: "Hello, world!",
5 type: "text",
6};

Fields

FieldTypeRequiredDescriptionExample
cacheControlmodels.ChatContentCacheControlCache control for the content part{"ttl": "5m","type": "ephemeral"}
textstring✔️N/A
typemodels.ChatContentTextType✔️N/A