Class OpenAiApiClientErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.ai.openai.api.common.OpenAiApiClientErrorException
All Implemented Interfaces:
Serializable

public class OpenAiApiClientErrorException extends RuntimeException
Thrown on 4xx client errors, such as 401 - Incorrect API key provided, 401 - You must be a member of an organization to use the API, 429 - Rate limit reached for requests, 429 - You exceeded your current quota , please check your plan and billing details.
See Also:
  • Constructor Details

    • OpenAiApiClientErrorException

      public OpenAiApiClientErrorException(String message)
    • OpenAiApiClientErrorException

      public OpenAiApiClientErrorException(String message, Throwable cause)