fix(ai-providers): gate Claude models input and refine excluded tag styles

This commit is contained in:
Supra4E8C
2025-12-19 23:54:26 +08:00
parent 39d86d133a
commit 10f2262753
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,6 +1897,7 @@ 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')}
/> />
{modal?.type === 'claude' && (
<div className="form-group"> <div className="form-group">
<label>{t('ai_providers.claude_models_label')}</label> <label>{t('ai_providers.claude_models_label')}</label>
<ModelInputList <ModelInputList
@@ -1910,6 +1911,7 @@ export function AiProvidersPage() {
disabled={saving} 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