Example Usage
import { TaskClassificationModel } from "@openrouter/sdk/models";
let value: TaskClassificationModel = {
id: "openai/gpt-4.1-mini",
tagTokenShare: 0.75,
tagUsageShare: 0.55,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | :heavy_check_mark: | Model identifier (permaslug). | openai/gpt-4.1-mini |
tagTokenShare | number | :heavy_check_mark: | 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 | :heavy_check_mark: | 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 |