OpenAiError
OpenAI error metadata augmentation.
Provides OpenAI-specific metadata fields for AI error types through module augmentation, enabling typed access to OpenAI error details.
Models
OpenAiErrorMetadata type
Added in v4.0.0
Source
Signature
type OpenAiErrorMetadata = { readonly errorCode: string | null; readonly errorType: string | null; readonly requestId: string | null;};OpenAiRateLimitMetadata type
Added in v4.0.0
Source
OpenAI-specific rate limit metadata fields.
Details
Extends base error metadata with rate limit specific information from OpenAI's rate limit headers.
Signature
type OpenAiRateLimitMetadata = OpenAiErrorMetadata & { readonly limit: string | null; readonly remaining: number | null; readonly resetRequests: string | null; readonly resetTokens: string | null;};
OpenAI-specific error metadata fields.