+ {tiers.length === 0 && (
+
+ {t(
+ "pages.config.routing.no_tiers",
+ "No routing tiers defined. Add a tier to configure routing.",
+ )}
+
+ )}
+ {tiers.map((tier, index) => (
+
+
+
+
+ handleTierChange(index, "model", e.target.value)
+ }
+ placeholder="e.g. gpt-4o-mini"
+ className="h-8"
+ />
+
+
+
+
+ handleTierChange(
+ index,
+ "threshold",
+ parseFloat(e.target.value) || 0,
+ )
+ }
+ className="h-8"
+ />
+
+
+
+ ))}
+