diff --git a/src/fastapi_poe/types.py b/src/fastapi_poe/types.py index c9f448e..7304e56 100644 --- a/src/fastapi_poe/types.py +++ b/src/fastapi_poe/types.py @@ -6,6 +6,7 @@ Identifier: TypeAlias = str FeedbackType: TypeAlias = Literal["like", "dislike"] ContentType: TypeAlias = Literal["text/markdown", "text/plain"] +ErrorType: TypeAlias = Literal["user_message_too_long"] class MessageFeedback(BaseModel): @@ -122,6 +123,7 @@ class ErrorResponse(PartialResponse): """Communicate errors from server bots.""" allow_retry: bool = False + error_type: Optional[ErrorType] = None class MetaResponse(PartialResponse):