The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ChatStreamingResponseChunk } from "@openrouter/sdk/models";
let value: ChatStreamingResponseChunk = {
data: {
id: "<id>",
choices: [
{
delta: {},
finishReason: "error",
index: 3793.72,
},
],
created: 932.78,
model: "Ranchero",
object: "chat.completion.chunk",
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
data | models.ChatStreamingResponseChunkData | :heavy_check_mark: | N/A |