Prediction
Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance.
Was this page helpful?
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 | ✅ | N/A |
type | models.PredictionType | ✅ | N/A |
Was this page helpful?