mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 13:01:51 +08:00
feat: configure incomplete script review path
This commit is contained in:
1 parent
97213e357b
commit
dc72b5b4a9
7 files changed
+79
-23
No files matched your search
@@ -203,6 +203,7 @@ const defaultJudge = (): JudgeConfig => ({
|
||||
fail_action: "allow",
|
||||
ask_timeout_seconds: 300,
|
||||
ask_timeout_action: "deny",
|
||||
incomplete_script_action: "ask",
|
||||
});
|
||||
|
||||
function JudgeCard() {
|
||||
@@ -396,6 +397,18 @@ function JudgeCard() {
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</Field>
|
||||
<Field label="脚本快照不完整时">
|
||||
<Select
|
||||
value={cfg.incomplete_script_action}
|
||||
onValueChange={(v) => patch({ incomplete_script_action: v as JudgeConfig["incomplete_script_action"] })}
|
||||
>
|
||||
<SelectTrigger><SelectValue /></SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="ask">转人工审查(默认)</SelectItem>
|
||||
<SelectItem value="model">继续交给模型审查</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</Field>
|
||||
</div>
|
||||
|
||||
<Separator />
|
||||
|
||||
Reference in new issue
Block a user