effect-io-ai

Package: @effect/ai-openai-compat
Module: OpenAiError

OpenAiError.OpenAiErrorMetadata

OpenAI-specific error metadata fields.

Signature

type OpenAiErrorMetadata = {
  /**
   * The OpenAI error code returned by the API.
   */
  readonly errorCode: string | null
  /**
   * The OpenAI error type returned by the API.
   */
  readonly errorType: string | null
  /**
   * The unique request ID for debugging with OpenAI support.
   */
  readonly requestId: string | null
}

Source

Since v4.0.0