mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
更新 search_person.py
This commit is contained in:
@@ -72,8 +72,8 @@ class SearchPersonTool(MoviePilotTool):
|
|||||||
|
|
||||||
result_json = json.dumps(simplified_results, ensure_ascii=False, indent=2)
|
result_json = json.dumps(simplified_results, ensure_ascii=False, indent=2)
|
||||||
# 如果结果被裁剪,添加提示信息
|
# 如果结果被裁剪,添加提示信息
|
||||||
if total_count > 30:
|
if total_count > 50:
|
||||||
return f"注意:搜索结果共找到 {total_count} 条,为节省上下文空间,仅显示前 30 条结果。\n\n{result_json}"
|
return f"注意:搜索结果共找到 {total_count} 条,为节省上下文空间,仅显示前 50 条结果。\n\n{result_json}"
|
||||||
return result_json
|
return result_json
|
||||||
else:
|
else:
|
||||||
return f"未找到相关人物信息: {name}"
|
return f"未找到相关人物信息: {name}"
|
||||||
|
|||||||
Reference in New Issue
Block a user