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
co-authored by greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
parent be23583d30
commit af6ff6957d
@@ -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;