+
+
+ {/* 开关 */}
+ handleChange("open", checked)}
+ />
+
+
+ {/* 配置表单 */}
+ {open && (
+
+ {/* 模型配置组 */}
+
+
+ {t("modelSettings")}
+
+
+ {/* 模型选择 */}
+
+
handleChange("model_id", value)}
+ onValidate={handleModelValidate}
+ />
+ {errors.model_id && (
+ {t("modelRequired")}
+ )}
+
+
+ {/* 温度设置 */}
+
+
+
+ handleChange("temperature", v[0])}
+ className="flex-1"
+ />
+ {temperature.toFixed(1)}
+
+
+
+
+ {/* 预测配置组 */}
+
+
+ {t("predictionSettings")}
+
+
+ {/* 预测问题数量 */}
+
+
+
+ handleChange("predict_count", v[0])}
+ className="flex-1"
+ />
+ {predict_count}
+
+
+
+ {/* 历史消息数量 */}
+
+
+
+ handleChange("history_count", v[0])}
+ className="flex-1"
+ />
+ {history_count}
+
+
+
+
+ )}
+
+ );
+}
\ No newline at end of file