Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

383 B
Raw Blame
import {
  type ClassifiedLLMError,
  createLLMErrorClassifier,
  type LLMErrorKind,
} from '@lobechat/agent-runtime';
import { ERROR_CODE_SPECS, getErrorCodeSpec } from '@lobechat/model-runtime';

export const classifyLLMError = createLLMErrorClassifier({
  errorCodeSpecs: Object.values(ERROR_CODE_SPECS),
  getErrorCodeSpec,
});

export type { ClassifiedLLMError, LLMErrorKind };