@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
40 lines (28 loc) • 1.24 kB
text/typescript
/* eslint-disable sort-keys-fix/sort-keys-fix */
// ******* Runtime Biz Error ******* //
export const AgentRuntimeErrorType = {
AgentRuntimeError: 'AgentRuntimeError', // Agent Runtime 模块运行时错误
LocationNotSupportError: 'LocationNotSupportError',
QuotaLimitReached: 'QuotaLimitReached',
InsufficientQuota: 'InsufficientQuota',
ModelNotFound: 'ModelNotFound',
PermissionDenied: 'PermissionDenied',
ExceededContextWindow: 'ExceededContextWindow',
InvalidProviderAPIKey: 'InvalidProviderAPIKey',
ProviderBizError: 'ProviderBizError',
InvalidOllamaArgs: 'InvalidOllamaArgs',
OllamaBizError: 'OllamaBizError',
OllamaServiceUnavailable: 'OllamaServiceUnavailable',
InvalidBedrockCredentials: 'InvalidBedrockCredentials',
InvalidVertexCredentials: 'InvalidVertexCredentials',
StreamChunkError: 'StreamChunkError',
InvalidGithubToken: 'InvalidGithubToken',
ConnectionCheckFailed: 'ConnectionCheckFailed',
/**
* @deprecated
*/
NoOpenAIAPIKey: 'NoOpenAIAPIKey',
} as const;
export const AGENT_RUNTIME_ERROR_SET = new Set<string>(Object.values(AgentRuntimeErrorType));
export type ILobeAgentRuntimeErrorType =
(typeof AgentRuntimeErrorType)[keyof typeof AgentRuntimeErrorType];