Example Usage
import { GenerationContentResponse } from "@openrouter/sdk/models";
let value: GenerationContentResponse = {
data: {
input: {
messages: [
{
"content": "What is the meaning of life?",
"role": "user",
},
],
},
output: {
completion: "The meaning of life is a philosophical question...",
reasoning: null,
},
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | models.GenerationContentData | :heavy_check_mark: | Stored prompt and completion content | { “input”: { “messages”: [ { “content”: “What is the meaning of life?”, “role”: “user” } ] }, “output”: { “completion”: “The meaning of life is a philosophical question…”, “reasoning”: null } } |