fix(ingest): raise ref cap to 50 and clarify invalid bvid error
This commit is contained in:
1 parent
b5bf7d9b8f
commit
b0c53e8a2f
7 files changed
+107
-9
No files matched your search
@@ -80,6 +80,9 @@ def format_manual_reply(manual_result: Any) -> str:
|
||||
return "未识别到 B 站视频引用,请发送视频链接或 BV 号,例如 BV1x8x166EzY。"
|
||||
results = list(getattr(manual_result, "results", []) or [])
|
||||
lines = [_result_line(item) for item in results]
|
||||
truncated = int(getattr(manual_result, "truncated", 0) or 0)
|
||||
if truncated > 0:
|
||||
lines.append(f"⚠️ 本消息还有 {truncated} 个引用未处理,请分批再发一次。")
|
||||
header = f"共识别 {refs} 个引用,入库 {int(getattr(manual_result, 'added', 0) or 0)} 条:"
|
||||
return "\n".join([header, *lines])
|
||||
|
||||
|
||||
Reference in new issue
Block a user