docs: 修正错误码一致性 spec/plan 计数笔误(LLM 错误码实为 4 条非 5)
This commit is contained in:
@@ -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)};"
|
||||
"新增/删除错误码须同步更新此计数。"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user