Compare commits

...

1 Commits

Author SHA1 Message Date
Supra4E8C
10f2262753 fix(ai-providers): gate Claude models input and refine excluded tag styles 2025-12-19 23:54:26 +08:00
2 changed files with 26 additions and 15 deletions

View File

@@ -404,8 +404,17 @@
} }
.excludedModelTag { .excludedModelTag {
background: rgba(251, 191, 36, 0.2); background: rgba(251, 191, 36, 0.22);
border-color: rgba(251, 191, 36, 0.4); border-color: rgba(251, 191, 36, 0.55);
color: #fde68a;
.modelName {
color: #fde68a;
}
}
.excludedModelsLabel {
color: #fde68a;
} }
.apiKeyEntryCard { .apiKeyEntryCard {

View File

@@ -1897,19 +1897,21 @@ export function AiProvidersPage() {
keyPlaceholder={t('common.custom_headers_key_placeholder')} keyPlaceholder={t('common.custom_headers_key_placeholder')}
valuePlaceholder={t('common.custom_headers_value_placeholder')} valuePlaceholder={t('common.custom_headers_value_placeholder')}
/> />
<div className="form-group"> {modal?.type === 'claude' && (
<label>{t('ai_providers.claude_models_label')}</label> <div className="form-group">
<ModelInputList <label>{t('ai_providers.claude_models_label')}</label>
entries={providerForm.modelEntries} <ModelInputList
onChange={(entries) => entries={providerForm.modelEntries}
setProviderForm((prev) => ({ ...prev, modelEntries: entries })) onChange={(entries) =>
} setProviderForm((prev) => ({ ...prev, modelEntries: entries }))
addLabel={t('ai_providers.claude_models_add_btn')} }
namePlaceholder={t('common.model_name_placeholder')} addLabel={t('ai_providers.claude_models_add_btn')}
aliasPlaceholder={t('common.model_alias_placeholder')} namePlaceholder={t('common.model_name_placeholder')}
disabled={saving} aliasPlaceholder={t('common.model_alias_placeholder')}
/> disabled={saving}
</div> />
</div>
)}
<div className="form-group"> <div className="form-group">
<label>{t('ai_providers.excluded_models_label')}</label> <label>{t('ai_providers.excluded_models_label')}</label>
<textarea <textarea