Fix/add trial expire tip time (#13464)

This commit is contained in:
NFish 2025-02-10 12:53:59 +08:00 committed by GitHub
parent 33990426c1
commit 7d958635f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@ export const ProviderContextProvider = ({
if (localStorage.getItem('anthropic_quota_notice') === 'true') if (localStorage.getItem('anthropic_quota_notice') === 'true')
return return
if (dayjs().isAfter(dayjs('2025-03-10'))) if (dayjs().isAfter(dayjs('2025-03-11')))
return return
if (providersData?.data && providersData.data.length > 0) { if (providersData?.data && providersData.data.length > 0) {
@ -130,7 +130,7 @@ export const ProviderContextProvider = ({
Toast.notify({ Toast.notify({
type: 'info', type: 'info',
message: t('common.provider.anthropicHosted.trialQuotaTip'), message: t('common.provider.anthropicHosted.trialQuotaTip'),
duration: 6000, duration: 60000,
onClose: () => { onClose: () => {
localStorage.setItem('anthropic_quota_notice', 'true') localStorage.setItem('anthropic_quota_notice', 'true')
}, },

View File

@ -290,7 +290,7 @@ const translation = {
usedUp: 'Trial quota used up. Add own Model Provider.', usedUp: 'Trial quota used up. Add own Model Provider.',
useYourModel: 'Currently using own Model Provider.', useYourModel: 'Currently using own Model Provider.',
close: 'Close', 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: { anthropic: {
using: 'The embedding capability is using', using: 'The embedding capability is using',

View File

@ -291,7 +291,7 @@ const translation = {
usedUp: 'トライアルクォータが使い果たされました。独自のモデルプロバイダを追加してください。', usedUp: 'トライアルクォータが使い果たされました。独自のモデルプロバイダを追加してください。',
useYourModel: '現在、独自のモデルプロバイダを使用しています。', useYourModel: '現在、独自のモデルプロバイダを使用しています。',
close: '閉じる', close: '閉じる',
trialQuotaTip: 'お客様の Anthropic 試用枠は 2025/03/10 に失効し、その後は利用できなくなります。お早めにご利用ください。', trialQuotaTip: 'お客様の Anthropic 試用枠は 2025/03/11 に失効し、その後は利用できなくなります。お早めにご利用ください。',
}, },
anthropic: { anthropic: {
using: '埋め込み機能は使用中です', using: '埋め込み機能は使用中です',

View File

@ -290,7 +290,7 @@ const translation = {
usedUp: '试用额度已用完,请在下方添加自己的模型供应商', usedUp: '试用额度已用完,请在下方添加自己的模型供应商',
useYourModel: '当前正在使用你自己的模型供应商。', useYourModel: '当前正在使用你自己的模型供应商。',
close: '关闭', close: '关闭',
trialQuotaTip: '您的 Anthropic 体验额度将于 2025/03/10 过期,过期后将无法使用,请尽快体验。', trialQuotaTip: '您的 Anthropic 体验额度将于 2025/03/11 过期,过期后将无法使用,请尽快体验。',
}, },
anthropic: { anthropic: {
using: '嵌入能力正在使用', using: '嵌入能力正在使用',