From 4a71387098cfa6ba1ee7891744a3f50703ce3ed6 Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 2 Feb 2026 14:30:34 +0800 Subject: [PATCH] fix: do not show evalute result when no claims --- src/pages/llmodels/hooks/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/llmodels/hooks/index.ts b/src/pages/llmodels/hooks/index.ts index 70df59a8..b5d30c94 100644 --- a/src/pages/llmodels/hooks/index.ts +++ b/src/pages/llmodels/hooks/index.ts @@ -285,10 +285,15 @@ export const useCheckCompatibility = () => { : compatibilityMessage }; + let noResourceClaim = false; + if (hasClaim) { const ram = convertFileSize(resource_claim?.ram || 0, 2); const vram = convertFileSize(resource_claim?.vram || 0, 2); let messageId = 'models.form.check.claims'; + // when no ram and no vram + noResourceClaim = !ram && !vram; + if (!ram) { messageId = 'models.form.check.claims2'; } @@ -302,7 +307,7 @@ export const useCheckCompatibility = () => { } return { - show: !compatible || hasClaim, + show: noResourceClaim ? false : !compatible || hasClaim, type: !compatible ? 'warning' : 'success', ...msgData };