Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix/add trial expire tip time (#13464)

NFish7d958635f095
diff --git a/web/context/provider-context.tsx b/web/context/provider-context.tsx
index b24c0236617..913a95d6a1d 100644
--- a/web/context/provider-context.tsx
+++ b/web/context/provider-context.tsx
@@ -119,7 +119,7 @@ export const ProviderContextProvider = ({
if (localStorage.getItem('anthropic_quota_notice') === 'true')
return
- if (dayjs().isAfter(dayjs('2025-03-10')))
+ if (dayjs().isAfter(dayjs('2025-03-11')))
return
if (providersData?.data && providersData.data.length > 0) {
@@ -130,7 +130,7 @@ export const ProviderContextProvider = ({
Toast.notify({
type: 'info',
message: t('common.provider.anthropicHosted.trialQuotaTip'),
- duration: 6000,
+ duration: 60000,
onClose: () => {
localStorage.setItem('anthropic_quota_notice', 'true')
},
diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts
index 90b562362a8..822c4030fc2 100644
--- a/web/i18n/en-US/common.ts
+++ b/web/i18n/en-US/common.ts
@@ -290,7 +290,7 @@ const translation = {
usedUp: 'Trial quota used up. Add own Model Provider.',
useYourModel: 'Currently using own Model Provider.',
close: 'Close',
- trialQuotaTip: 'Your Anthropic trial quota will expire on 2025/03/10 and will no longer be available thereafter. Please make use of it in time.',
+ trialQuotaTip: 'Your Anthropic trial quota will expire on 2025/03/11 and will no longer be available thereafter. Please make use of it in time.',
},
anthropic: {
using: 'The embedding capability is using',
diff --git a/web/i18n/ja-JP/common.ts b/web/i18n/ja-JP/common.ts
index e54c3af5098..ba52dfcf1eb 100644
--- a/web/i18n/ja-JP/common.ts
+++ b/web/i18n/ja-JP/common.ts
@@ -291,7 +291,7 @@ const translation = {
usedUp: 'トライアルクォータが使い果たされました。独自のモデルプロバイダを追加してください。',
useYourModel: '現在、独自のモデルプロバイダを使用しています。',
close: '閉じる',
- trialQuotaTip: 'お客様の Anthropic 試用枠は 2025/03/10 に失効し、その後は利用できなくなります。お早めにご利用ください。',
+ trialQuotaTip: 'お客様の Anthropic 試用枠は 2025/03/11 に失効し、その後は利用できなくなります。お早めにご利用ください。',
},
anthropic: {
using: '埋め込み機能は使用中です',
diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts
index 1a2c96b17ea..1022155c89d 100644
--- a/web/i18n/zh-Hans/common.ts
+++ b/web/i18n/zh-Hans/common.ts
@@ -290,7 +290,7 @@ const translation = {
usedUp: '试用额度已用完,请在下方添加自己的模型供应商',
useYourModel: '当前正在使用你自己的模型供应商。',
close: '关闭',
- trialQuotaTip: '您的 Anthropic 体验额度将于 2025/03/10 过期,过期后将无法使用,请尽快体验。',
+ trialQuotaTip: '您的 Anthropic 体验额度将于 2025/03/11 过期,过期后将无法使用,请尽快体验。',
},
anthropic: {
using: '嵌入能力正在使用',