The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { Input2 } from "@openrouter/sdk/models";
let value: Input2 = {
messages: [
{
"content": "What is the meaning of life?",
"role": "user",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
messages | any[] | :heavy_check_mark: | N/A | [{"content": "What is the meaning of life?","role": "user"}] |