From 8135b4c374408be13481f5014571c3195bde86d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 12 Sep 2026 21:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=20LLM=20=E9=87=8D=E8=AF=95?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E5=B4=A9?= =?UTF-8?q?=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将理论不可达分支改为显式错误返回,防止重试边界变化触发 panic。 --- .../src-tauri/src/ui_editor/commands/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs index c9b5e2bc9..852a23c9d 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs @@ -81,7 +81,7 @@ where Err(error) => return Err(error), } } - unreachable!("重试循环在最后一次尝试时始终返回结果") + Err("LLM 重试未返回结果".to_string()) } pub(crate) fn parse_limited_llm_tool_arguments(