避免 LLM 重试循环生产环境崩溃
将理论不可达分支改为显式错误返回,防止重试边界变化触发 panic。
This commit is contained in:
@@ -81,7 +81,7 @@ where
|
||||
Err(error) => return Err(error),
|
||||
}
|
||||
}
|
||||
unreachable!("重试循环在最后一次尝试时始终返回结果")
|
||||
Err("LLM 重试未返回结果".to_string())
|
||||
}
|
||||
|
||||
pub(crate) fn parse_limited_llm_tool_arguments(
|
||||
|
||||
Reference in New Issue
Block a user