Update ui/litellm-dashboard/src/components/add_model/RouterConfigBuilder.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
yuneng-jiang 2026-02-11 20:47:53 -08:00 committed by GitHub
parent be23583d30
commit af6ff6957d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ const RouterConfigBuilder: React.FC<RouterConfigBuilderProps> = ({ modelInfo, va
model: route.name || route.model || "", // handle both 'name' and 'model' fields
utterances: route.utterances || [],
description: route.description || "",
score_threshold: route.score_threshold || 0.5,
score_threshold: route.score_threshold ?? 0.5,
};
});
return initializedRoutes;