Class GPTException.GPTContextLengthExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.composum.ai.backend.base.service.GPTException
-
- com.composum.ai.backend.base.service.GPTException.GPTContextLengthExceededException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GPTException
public static class GPTException.GPTContextLengthExceededException extends GPTException
{ "error": { "message": "This model's maximum context length is 4097 tokens. However, you requested 4671 tokens (1203 in the messages, 3468 in the completion). Please reduce the length of the messages or completion.", "type": "invalid_request_error", "param": "messages", "code": "context_length_exceeded" } }
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.ai.backend.base.service.GPTException
GPTException.GPTContextLengthExceededException, GPTException.GPTRetryableResponseErrorException
-
-
Constructor Summary
Constructors Constructor Description GPTContextLengthExceededException(String message)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
GPTContextLengthExceededException
public GPTContextLengthExceededException(String message)
-
-