π€― 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π fix(model-runtime): classify SubscriptionPlanLimit in the error spec table (#19006)
Arvin Xu89cca7696fa5
diff --git a/packages/model-runtime/src/errors/specs.ts b/packages/model-runtime/src/errors/specs.tsindex 671a79477bd..f7494de9738 100644--- a/packages/model-runtime/src/errors/specs.ts+++ b/packages/model-runtime/src/errors/specs.ts@@ -12,7 +12,8 @@ import type { ErrorAttribution, ErrorCategory, ErrorSeverity } from './taxonomy'export type CloudErrorCode =| typeof ChatErrorType.FreePlanLimit| typeof ChatErrorType.InsufficientBudgetForModel- | typeof ChatErrorType.LobeHubModelDeprecated;+ | typeof ChatErrorType.LobeHubModelDeprecated+ | typeof ChatErrorType.SubscriptionPlanLimit;/** Every code the spec table can classify. */export type SpecErrorCode = CloudErrorCode | ILobeAgentRuntimeErrorType;@@ -191,6 +192,18 @@ export const ERROR_CODE_SPECS: SpecMap = {countAsFailure: false,description: 'LobeHub Cloud balance is positive but below the modelβs estimated cost.',},+ [ChatErrorType.SubscriptionPlanLimit]: {+ code: ChatErrorType.SubscriptionPlanLimit,+ numericId: 2903,+ category: 'quota',+ severity: 'warning',+ attribution: 'user',+ httpStatus: 402,+ retryable: false,+ countAsFailure: false,+ description:+ 'LobeHub Cloud paid-plan allowance reached, or the plan tier does not cover the requested model.',+ },// βββ 3xxx Capacity ββββββββββββββββββββββββββββββββββββββββββββββββββββ[AgentRuntimeErrorType.RateLimitExceeded]: {