OpenRouterError.ts
OpenRouterError.ts overview
Section titled “OpenRouterError.ts overview”OpenRouter-specific error metadata fields.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”models
Section titled “models”OpenRouterErrorMetadata (type alias)
Section titled “OpenRouterErrorMetadata (type alias)”OpenRouter-specific error metadata fields.
Signature
type OpenRouterErrorMetadata = { /** * The error code returned by the API. */ readonly errorCode: string | number | null /** * The error type returned by the API. */ readonly errorType: string | null /** * The unique request ID for debugging. */ readonly requestId: string | null}Since v4.0.0
OpenRouterRateLimitMetadata (type alias)
Section titled “OpenRouterRateLimitMetadata (type alias)”OpenRouter-specific rate limit metadata fields.
Signature
type OpenRouterRateLimitMetadata = OpenRouterErrorMetadata & { readonly limit: string | null readonly remaining: number | null readonly resetRequests: string | null readonly resetTokens: string | null}Since v4.0.0