refactor: rename ACCOUNT_SETTING_TAB.PROVIDER to MODEL_PROVIDER

Rename the constant for clarity and consistency with the new
sandbox-provider tab naming convention. Update all references
across the codebase to use the new constant name.
This commit is contained in:
yyh
2026-01-13 15:07:04 +08:00
parent f72f58dbc4
commit ffc39b0235
12 changed files with 19 additions and 18 deletions

View File

@ -50,7 +50,7 @@ const ModerationSettingModal: FC<ModerationSettingModalProps> = ({
const { setShowAccountSettingModal } = useModalContext()
const handleOpenSettingsModal = () => {
setShowAccountSettingModal({
payload: ACCOUNT_SETTING_TAB.PROVIDER,
payload: ACCOUNT_SETTING_TAB.MODEL_PROVIDER,
onCancelCallback: () => {
refetchModelProviders()
},
@ -281,7 +281,7 @@ const ModerationSettingModal: FC<ModerationSettingModalProps> = ({
>
&nbsp;
{t('settings.provider', { ns: 'common' })}
&nbsp;
&nbsp;
</span>
{t('feature.moderation.modal.openaiNotConfig.after', { ns: 'appDebug' })}
</div>