🤯 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
💄 style(chat): soften run-fee notice copy, add send-error slot icon (#23723)
YuTengjing96ada81457ad
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.jsonindex a36030ce5c2..4ac9a50480d 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -1770,10 +1770,16 @@"inbox.desc": "Collaborate in one Workspace and move ideas into outcomes.","inbox.title": "Lobe AI","input.agentModeUnsupportedModel": "The current model doesn’t support agentic tool calling. Switch to a model with agent capability for the best experience.",- "input.agentRunFeeUnfunded.desc": "Each agent run carries a fee, even on your own API key. Top up or upgrade your plan, then send again.",- "input.agentRunFeeUnfunded.descOverflow": "Each agent run carries a fee, even on your own API key. Your balance covers it: use your balance, then send again.",- "input.agentRunFeeUnfunded.descSubscribe": "Each agent run carries a fee, even on your own API key. Subscribe to a plan, then send again.",- "input.agentRunFeeUnfunded.descTopUp": "Each agent run carries a fee, even on your own API key. Top up, then send again.",+ "input.agentRunFeeUnfunded.desc": "Top up or upgrade your plan, then send again.",+ "input.agentRunFeeUnfunded.descOverflow": "Your balance covers this run. Use your balance, then send again.",+ "input.agentRunFeeUnfunded.descSubscribe": "Subscribe to a plan, then send again.",+ "input.agentRunFeeUnfunded.descTopUp": "Top up, then send again.",+ "input.agentRunFeeUnfunded.free.desc": "Resets on {{date}}. Upgrade to {{plan}} for model usage and more agent runs.",+ "input.agentRunFeeUnfunded.free.descNoReset": "Upgrade to {{plan}} for model usage and more agent runs.",+ "input.agentRunFeeUnfunded.free.descOwnKey": "Resets on {{date}}. Upgrade to {{plan}} for model usage and more agent runs, or choose {{basic}} ({{price}}/month) if you only use your own API key.",+ "input.agentRunFeeUnfunded.free.descOwnKeyNoReset": "Upgrade to {{plan}} for model usage and more agent runs, or choose {{basic}} ({{price}}/month) if you only use your own API key.",+ "input.agentRunFeeUnfunded.free.title": "You’ve used this month’s free credits",+ "input.agentRunFeeUnfunded.free.upgrade": "Upgrade plan","input.agentRunFeeUnfunded.title": "Not enough credits to pay the agent run fee","input.agentSlugMoved": "This link now opens a different agent. Switching to it — try again once it opens. Your draft is kept.","input.agentSlugUnconfirmed": "Couldn’t confirm which agent this link opens. Check your connection, then try again.",diff --git a/locales/en-US/error.json b/locales/en-US/error.jsonindex dd197df3d40..110f82f7a72 100644--- a/locales/en-US/error.json+++ b/locales/en-US/error.json@@ -96,7 +96,7 @@"response.GoogleAIBlockReason.SAFETY": "The content was blocked for safety reasons. Please adjust it and try again.","response.GoogleAIBlockReason.SPII": "The content may include sensitive personal information (SPII). Please remove sensitive details and try again.","response.GoogleAIBlockReason.default": "The content was blocked ({{blockReason}}). Please adjust it and try again.",- "response.InsufficientBudgetForAgentRunFee": "Not enough credits to pay the agent run fee. Each agent run carries a fee, even on your own CLI account. Top up or upgrade your plan, then try again.",+ "response.InsufficientBudgetForAgentRunFee": "Not enough credits to pay the agent run fee. Each agent run carries a small fee, including runs on your own CLI account. Top up or upgrade your plan, then try again.","response.InsufficientBudgetForModel": "Your remaining balance is insufficient for this model. Please top up, upgrade your plan, or try a less expensive model.","response.InvalidAccessCode": "Invalid access code or empty. Please enter the correct access code or add a custom API Key.","response.LobeHubModelDeprecated": "The model \"{{model}}\" is no longer available. Please pick a current model from the model selector.",diff --git a/locales/en-US/subscription.json b/locales/en-US/subscription.jsonindex df0d3de9563..d7fbbf90c22 100644--- a/locales/en-US/subscription.json+++ b/locales/en-US/subscription.json@@ -717,6 +717,7 @@"plans.quota.freeLimit": "Monthly limit, resets every month","plans.quota.none": "No built-in usage","plans.quota.title": "Usage",+ "plans.recommended": "Recommended","plans.restoreSubscription": "Restore subscription","plans.restoreSubscriptionError": "Could not restore your subscription","plans.restoreSubscriptionSuccess": "Subscription has been restored",diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.jsonindex 9467dd084d9..37d010aefdd 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -1770,10 +1770,16 @@"inbox.desc": "在同一工作区协作,把想法推进成结果","inbox.title": "Lobe AI","input.agentModeUnsupportedModel": "当前模型不支持 Agentic 工具调用,建议切换为具备 Agent 能力的模型以获得最佳体验。",- "input.agentRunFeeUnfunded.desc": "每次助理运行都会收取运行费,使用自己的 API Key 也不例外。充值或升级套餐后再发送。",- "input.agentRunFeeUnfunded.descOverflow": "每次助理运行都会收取运行费,使用自己的 API Key 也不例外。你的余额足够支付,使用余额后再发送。",- "input.agentRunFeeUnfunded.descSubscribe": "每次助理运行都会收取运行费,使用自己的 API Key 也不例外。订阅套餐后再发送。",- "input.agentRunFeeUnfunded.descTopUp": "每次助理运行都会收取运行费,使用自己的 API Key 也不例外。充值后再发送。",+ "input.agentRunFeeUnfunded.desc": "充值或升级套餐后再发送。",+ "input.agentRunFeeUnfunded.descOverflow": "你的余额足够支付本次运行,使用余额后再发送。",+ "input.agentRunFeeUnfunded.descSubscribe": "订阅套餐后再发送。",+ "input.agentRunFeeUnfunded.descTopUp": "充值后再发送。",+ "input.agentRunFeeUnfunded.free.desc": "{{date}}重置。升级 {{plan}} 可获得模型用量和更多运行次数。",+ "input.agentRunFeeUnfunded.free.descNoReset": "升级 {{plan}} 可获得模型用量和更多运行次数。",+ "input.agentRunFeeUnfunded.free.descOwnKey": "{{date}}重置。升级 {{plan}} 可获得模型用量和更多运行次数;只用自己的 API Key 也可以选 {{basic}}({{price}}/月)。",+ "input.agentRunFeeUnfunded.free.descOwnKeyNoReset": "升级 {{plan}} 可获得模型用量和更多运行次数;只用自己的 API Key 也可以选 {{basic}}({{price}}/月)。",+ "input.agentRunFeeUnfunded.free.title": "本月免费额度已用完",+ "input.agentRunFeeUnfunded.free.upgrade": "升级套餐","input.agentRunFeeUnfunded.title": "额度不足以支付助理运行费","input.agentSlugMoved": "该链接现在指向另一个助理,正在切换,打开后请重试。输入框中的草稿会保留。","input.agentSlugUnconfirmed": "暂时无法确认该链接对应的助理,请检查网络后重试。",diff --git a/locales/zh-CN/error.json b/locales/zh-CN/error.jsonindex 0ddd7beb467..c38724fe2f5 100644--- a/locales/zh-CN/error.json+++ b/locales/zh-CN/error.json@@ -96,7 +96,7 @@"response.GoogleAIBlockReason.SAFETY": "内容因安全原因被屏蔽。请调整后再试。","response.GoogleAIBlockReason.SPII": "内容可能包含敏感个人信息(SPII)。请移除敏感信息后再试。","response.GoogleAIBlockReason.default": "内容被屏蔽({{blockReason}})。请调整后再试。",- "response.InsufficientBudgetForAgentRunFee": "额度不足以支付助理运行费。每次助理运行都会收取运行费,使用自己的 CLI 账号也不例外。充值或升级套餐后再试。",+ "response.InsufficientBudgetForAgentRunFee": "额度不足以支付助理运行费。助理每次运行收取少量运行费,使用自己的 CLI 账号时同样计费。充值或升级套餐后再试。","response.InsufficientBudgetForModel": "你的余额不足以使用此模型。请充值、升级订阅套餐,或尝试使用费用更低的模型。","response.InvalidAccessCode": "访问密码为空或不正确。请重新输入,或改用自定义 API Key","response.LobeHubModelDeprecated": "模型「{{model}}」已下架,请到模型选择器中重新选择可用模型。",diff --git a/locales/zh-CN/subscription.json b/locales/zh-CN/subscription.jsonindex 55a7202be4f..4e901938414 100644--- a/locales/zh-CN/subscription.json+++ b/locales/zh-CN/subscription.json@@ -717,6 +717,7 @@"plans.quota.freeLimit": "每月限额,按月重置","plans.quota.none": "无内置额度","plans.quota.title": "额度",+ "plans.recommended": "推荐","plans.restoreSubscription": "恢复订阅","plans.restoreSubscriptionError": "订阅恢复失败","plans.restoreSubscriptionSuccess": "订阅已恢复",diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.tsindex 8ca3d7a1c66..5115c284b45 100644--- a/packages/locales/src/default/chat.ts+++ b/packages/locales/src/default/chat.ts@@ -1058,14 +1058,21 @@ export default {'inbox.title': 'Lobe AI','input.agentModeUnsupportedModel':'The current model doesn’t support agentic tool calling. Switch to a model with agent capability for the best experience.',- 'input.agentRunFeeUnfunded.desc':- 'Each agent run carries a fee, even on your own API key. Top up or upgrade your plan, then send again.',+ 'input.agentRunFeeUnfunded.desc': 'Top up or upgrade your plan, then send again.','input.agentRunFeeUnfunded.descOverflow':- 'Each agent run carries a fee, even on your own API key. Your balance covers it: use your balance, then send again.',- 'input.agentRunFeeUnfunded.descSubscribe':- 'Each agent run carries a fee, even on your own API key. Subscribe to a plan, then send again.',- 'input.agentRunFeeUnfunded.descTopUp':- 'Each agent run carries a fee, even on your own API key. Top up, then send again.',+ 'Your balance covers this run. Use your balance, then send again.',+ 'input.agentRunFeeUnfunded.descSubscribe': 'Subscribe to a plan, then send again.',+ 'input.agentRunFeeUnfunded.descTopUp': 'Top up, then send again.',+ 'input.agentRunFeeUnfunded.free.desc':+ 'Resets on {{date}}. Upgrade to {{plan}} for model usage and more agent runs.',+ 'input.agentRunFeeUnfunded.free.descNoReset':+ 'Upgrade to {{plan}} for model usage and more agent runs.',+ 'input.agentRunFeeUnfunded.free.descOwnKey':+ 'Resets on {{date}}. Upgrade to {{plan}} for model usage and more agent runs, or choose {{basic}} ({{price}}/month) if you only use your own API key.',+ 'input.agentRunFeeUnfunded.free.descOwnKeyNoReset':+ 'Upgrade to {{plan}} for model usage and more agent runs, or choose {{basic}} ({{price}}/month) if you only use your own API key.',+ 'input.agentRunFeeUnfunded.free.title': 'You’ve used this month’s free credits',+ 'input.agentRunFeeUnfunded.free.upgrade': 'Upgrade plan','input.agentRunFeeUnfunded.title': 'Not enough credits to pay the agent run fee','input.agentSlugMoved':'This link now opens a different agent. Switching to it — try again once it opens. Your draft is kept.',diff --git a/packages/locales/src/default/error.ts b/packages/locales/src/default/error.tsindex 34acc7c3803..82234478695 100644--- a/packages/locales/src/default/error.ts+++ b/packages/locales/src/default/error.ts@@ -139,7 +139,7 @@ export default {'response.FreePlanLimit':'Your free allowance is used up. Top up or upgrade your plan to continue, or use a model on your own API key.','response.InsufficientBudgetForAgentRunFee':- 'Not enough credits to pay the agent run fee. Each agent run carries a fee, even on your own CLI account. Top up or upgrade your plan, then try again.',+ 'Not enough credits to pay the agent run fee. Each agent run carries a small fee, including runs on your own CLI account. Top up or upgrade your plan, then try again.','response.InsufficientBudgetForModel':'Your remaining balance is insufficient for this model. Please top up, upgrade your plan, or try a less expensive model.','response.GoogleAIBlockReason.BLOCKLIST':diff --git a/packages/locales/src/default/subscription.ts b/packages/locales/src/default/subscription.tsindex 5153ed11e6f..d6ddd39336e 100644--- a/packages/locales/src/default/subscription.ts+++ b/packages/locales/src/default/subscription.ts@@ -670,6 +670,7 @@ export default {'plans.plan.max.desc': 'For power users running agents at scale','plans.plan.plus.desc': 'For everyday AI use','plans.plan.pro.desc': 'For professionals who rely on AI every day',+ 'plans.recommended': 'Recommended','plans.restoreSubscription': 'Restore subscription','plans.restoreSubscriptionError': 'Could not restore your subscription','plans.restoreSubscriptionSuccess': 'Subscription has been restored',diff --git a/src/business/client/hooks/useBusinessSendErrorAlert.ts b/src/business/client/hooks/useBusinessSendErrorAlert.tsindex 5b21ed45b64..a17432b5e4d 100644--- a/src/business/client/hooks/useBusinessSendErrorAlert.ts+++ b/src/business/client/hooks/useBusinessSendErrorAlert.ts@@ -1,3 +1,4 @@+import type { IconProps } from '@lobehub/ui';import type { ReactNode } from 'react';export interface BusinessSendErrorAlert {@@ -5,6 +6,8 @@ export interface BusinessSendErrorAlert {action?: ReactNode;/** Replaces the line under the title, so it names only the actions offered. */description?: string;+ /** Replaces the notice icon, e.g. an hourglass for a limit that resets. */+ icon?: IconProps['icon'];/** Replaces the default notice text. */title?: string;}diff --git a/src/features/Conversation/ChatInput/SendErrorAlert.tsx b/src/features/Conversation/ChatInput/SendErrorAlert.tsxindex f5461afdc7e..38d007d287a 100644--- a/src/features/Conversation/ChatInput/SendErrorAlert.tsx+++ b/src/features/Conversation/ChatInput/SendErrorAlert.tsx@@ -59,6 +59,7 @@ const SendErrorAlert = memo<SendErrorAlertProps>(({ errorMessage, onClose }) =>closableaction={business.action}description={description}+ icon={business.icon}title={title}type={'secondary'}onClose={onClose}