= ({ modelInfo, va
{/* Description */}
- Description
-
{/* Score Threshold */}
- Score Threshold
-
-
-
+
+ Score Threshold
+
+
+ Minimum similarity score to route to this model (0-1)
+
updateRoute(route.id, "score_threshold", value || 0)}
+ onChange={(value) =>
+ updateRoute(route.id, "score_threshold", value || 0)
+ }
min={0}
max={1}
step={0.1}
@@ -230,18 +271,24 @@ const RouterConfigBuilder: React.FC = ({ modelInfo, va
{/* Example Utterances */}
- Example Utterances
-
-
-
+
+ Example Utterances
+
+
+ Training examples for this route. Type an utterance
+ and press Enter to add it.
+
-
- Type an utterance and press Enter to add it. You can also paste multiple lines.
-
+
+ Type an utterance and press Enter to add it. You can
+ also paste multiple lines.
+
updateRoute(route.id, "utterances", utterances)}
+ onChange={(utterances) =>
+ updateRoute(route.id, "utterances", utterances)
+ }
placeholder="Type an utterance and press Enter..."
style={{ width: "100%" }}
tokenSeparators={["\n"]}
@@ -256,20 +303,26 @@ const RouterConfigBuilder: React.FC = ({ modelInfo, va
)}
{/* JSON Preview */}
-
+
- JSON Preview
-
{showJsonPreview && (
-
- {JSON.stringify(generateConfig(), null, 2)}
+
+
+ {JSON.stringify(generateConfig(), null, 2)}
+
)}
-
);
};