Example Usage
import { ResultError } from "@openrouter/sdk/models";
let value: ResultError = {
message: "<value>",
param: "<value>",
type: "<value>",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
errorType | models.ApiErrorType | ➖ | Canonical OpenRouter error type, stable across all API formats | rate_limit_exceeded |
message | string | ✅ | N/A | |
param | string | ✅ | N/A | |
type | string | ✅ | N/A |