docs: 修正错误码一致性 spec/plan 计数笔误(LLM 错误码实为 4 条非 5)

This commit is contained in:
lhl
2026-08-09 16:56:49 +08:00
parent bb38a47445
commit f6172903b8
2 changed files with 5 additions and 5 deletions
@@ -106,10 +106,10 @@ def test_error_doc_llm_rows_resolve_to_exception():
def test_error_doc_stable_llm_row_count():
# 格式护栏:LLM 行数 === 5;新增/删除 LLM 错误码需显式更新此数
# 格式护栏:LLM 行数 === 4;新增/删除 LLM 错误码需显式更新此数
mapping = _extract_llm_error_rows(API_DOC.read_text(encoding="utf-8"))
assert len(mapping) == 5, (
f"api §7 LLM 错误码行数应为 5,实际 {len(mapping)}"
assert len(mapping) == 4, (
f"api §7 LLM 错误码行数应为 4,实际 {len(mapping)}"
"新增/删除错误码须同步更新此计数。"
)