Prediction
Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
import { Prediction } from "@openrouter/sdk/models";
let value: Prediction = {
content: "Expected response",
type: "content",
};
| Field | Type | Required | Description |
|---|---|---|---|
content | models.PredictionContent | :heavy_check_mark: | N/A |
type | models.PredictionType | :heavy_check_mark: | N/A |