fix: llmcore工具调用正则兼容tool_call标签,最小长度改为0

This commit is contained in:
Liang Jiaqing
2026-04-01 09:30:55 +08:00
parent d922303645
commit 404ea1947b
2 changed files with 4 additions and 4 deletions

2
ga.py
View File

@@ -388,7 +388,7 @@ class GenericAgentHandler(BaseHandler):
blocks = extract_robust_content(response.content)
if not blocks:
yield f"[Status] ❌ 失败: 未在回复中找到代码块内容\n"
yield f"[Status] ❌ 失败: 未在回复中找到<file_content>代码块内容\n"
return StepOutcome({"status": "error", "msg": "No content found, if you want a blank, you should use code_run"}, next_prompt="\n")
try:
new_content = expand_file_refs(blocks, base_dir=self.cwd)