Variable OpenAIErrorsConst

OpenAIErrors: {
    ENGINE_OVERLOAD: "Our servers are experiencing high traffic. Please retry your requests after a brief wait.";
    EXCEEDED_QUOTA: "You have hit your maximum monthly spend (hard limit) which you can view in the account billing section. Apply for a quota increase.";
    INVALID_API_KEY: "Incorrect API key provided. You can find your API key at https://platform.openai.com/account/api-keys.";
    INVALID_MODEL: "The model does not exist";
    MAX_TOKENS: "Maximum number of tokens reached.";
    NO_API_KEY: "No API key provided. Please set the OPENAI_API_KEY environment variable or pass the { apiKey } option.";
    RATE_LIMIT_REACHED: "You are sending requests too quickly. Pace your requests. Read the Rate limit guide.";
    SERVER_ERROR: "Issue on our servers. Retry your request after a brief wait and contact us if the issue persists. Check the status page.";
    UNKNOWN: "An unknown error occurred.";
} = ...

Type declaration

  • Readonly ENGINE_OVERLOAD: "Our servers are experiencing high traffic. Please retry your requests after a brief wait."
  • Readonly EXCEEDED_QUOTA: "You have hit your maximum monthly spend (hard limit) which you can view in the account billing section. Apply for a quota increase."
  • Readonly INVALID_API_KEY: "Incorrect API key provided. You can find your API key at https://platform.openai.com/account/api-keys."
  • Readonly INVALID_MODEL: "The model does not exist"
  • Readonly MAX_TOKENS: "Maximum number of tokens reached."
  • Readonly NO_API_KEY: "No API key provided. Please set the OPENAI_API_KEY environment variable or pass the { apiKey } option."
  • Readonly RATE_LIMIT_REACHED: "You are sending requests too quickly. Pace your requests. Read the Rate limit guide."
  • Readonly SERVER_ERROR: "Issue on our servers. Retry your request after a brief wait and contact us if the issue persists. Check the status page."
  • Readonly UNKNOWN: "An unknown error occurred."

Generated using TypeDoc