TaskClassificationModel - TypeScript SDK
TaskClassificationModel - TypeScript SDK
TaskClassificationModel type definition
Example Usage
1 import { TaskClassificationModel } from "@openrouter/sdk/models"; 2 3 let value: TaskClassificationModel = { 4 id: "openai/gpt-4.1-mini", 5 tagTokenShare: 0.75, 6 tagUsageShare: 0.55, 7 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | ✔️ | Model identifier (permaslug). | openai/gpt-4.1-mini |
tagTokenShare | number | ✔️ | Fraction of this classification’s sampled token volume attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded). | 0.75 |
tagUsageShare | number | ✔️ | Fraction of this classification’s sampled requests attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded). | 0.55 |