@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
24 lines • 752 B
text/typescript
//#region src/chat/types/error.d.ts
declare const ChatErrorType: {
readonly InvalidAccessCode: "InvalidAccessCode";
readonly OpenAIBizError: "OpenAIBizError";
readonly NoAPIKey: "NoAPIKey";
readonly BadRequest: 400;
readonly Unauthorized: 401;
readonly Forbidden: 403;
readonly ContentNotFound: 404;
readonly MethodNotAllowed: 405;
readonly TooManyRequests: 429;
readonly InternalServerError: 500;
readonly BadGateway: 502;
readonly ServiceUnavailable: 503;
readonly GatewayTimeout: 504;
};
type ErrorType = (typeof ChatErrorType)[keyof typeof ChatErrorType];
interface ErrorResponse {
body: any;
errorType: ErrorType;
}
//#endregion
export { ChatErrorType, ErrorResponse, ErrorType };
//# sourceMappingURL=error.d.mts.map