fix(style): error message toast

This commit is contained in:
jialin
2026-02-09 09:35:42 +08:00
parent 293c53d8dd
commit fba430999d
4 changed files with 16 additions and 10 deletions
@@ -36,12 +36,7 @@ const SupportedModels = () => {
const currentAPIKey = form.getFieldValue('api_key') || '';
// Avoid repeated requests with the same API key
if (
open &&
providerModelList.length === 0 &&
prevAPIKeyRef.current !== currentAPIKey &&
currentAPIKey
) {
if (open && prevAPIKeyRef.current !== currentAPIKey && currentAPIKey) {
prevAPIKeyRef.current = currentAPIKey;
fetchProviderModels({
id: action === PageAction.EDIT ? id! : 0,