Skip to content

docs: polish response anomaly docs wording in models.md and tutorial - #566

Merged
zhongzhouTan-coder merged 2 commits into
AISBench:masterfrom
Libotry:br_docs_0921
Sep 21, 2026
Merged

zhongzhouTan-coder merged 2 commits into
AISBench:masterfrom
Libotry:br_docs_0921

Conversation

@Libotry

@Libotry Libotry commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

PR Type / PR类型

  • Feature(功能新增)
  • Bugfix(Bug 修复)
  • Docs(文档更新)
  • CI/CD(持续集成/持续部署)
  • Refactor(代码重构)
  • Perf(性能优化)
  • Dependency(依赖项更新)
  • Test-Cases(测试用例更新)
  • Other(其他)

Related Issue | 关联 Issue
无 / N.A.

🔍 Motivation / 变更动机

本 PR 修正推理响应异常检测文档的两处措辞问题(均属 #468 引入、#502 重构后的遗留细节):

  1. models.md(中英)中"通用模型配置模板不预置 response_anomaly……不开启异常检测时无需添加"一段:一方面,未配置字段本就是默认状态,专门声明"不预置""无需添加"属于冗余表述;另一方面,该段引用"下例中的 response_anomaly",而示例代码块在 bugfix and docs: restructure response anomaly detection docs; remove empty payload_staging shell #502 中已移除 response_anomaly 配置,引用已悬空,读者按图索骥只会困惑。
  2. 进阶教程(中英)"归档收尾"步骤中"保留及清理 staging / retained and cleaned":--response-anomaly-payload-retention 的取值决定对 staging 是保留(all / anomalies)还是清理(none),属二选一语义,应使用"或 / or"。

This PR fixes two wording issues in the response anomaly detection documentation (both leftover details from #468, refined by #502):

  1. The models.md paragraph stating that the common model templates do not preconfigure response_anomaly adds no information (an unset field is the default state) and references a response_anomaly example block that no longer exists after bugfix and docs: restructure response anomaly detection docs; remove empty payload_staging shell #502 — a dangling pointer.
  2. The tutorial's archive-finalization step says "保留及清理 / retained and cleaned", while the --response-anomaly-payload-retention value decides between keeping (all / anomalies) or cleaning (none) the staging data — an either-or semantics that should read "或 / or".

📝 Modification / 修改内容

  • docs/source_zh_cn/base_tutorials/all_params/models.md 与 docs/source_en/base_tutorials/all_params/models.md:删除"通用模型配置模板不预置 response_anomaly……"整段(各 1 行),删除后"示例如下"直接衔接配置代码块。

  • docs/source_zh_cn/advanced_tutorials/response_anomaly_detection.md 与 docs/source_en/advanced_tutorials/response_anomaly_detection.md:检测流程"归档收尾"步骤"保留及清理"改为"保留或清理",英文同步 "retained and cleaned" 改为 "retained or cleaned"。

  • docs/source_{zh_cn,en}/base_tutorials/all_params/models.md: removed the "common model templates do not preconfigure response_anomaly" paragraph (1 line each); "as shown in the example below" now flows directly into the config code block.

  • docs/source_{zh_cn,en}/advanced_tutorials/response_anomaly_detection.md: archive-finalization step reworded from "保留及清理 / retained and cleaned" to "保留或清理 / retained or cleaned".

仅为文档措辞修改,未触碰任何代码与行为。 / Wording-only documentation change; no code or behavior touched.

📐 Associated Test Results / 关联测试结果

纯文档变更,不涉及代码测试。已验证:

可按需触发 /readthedocs build 验证文档构建。

Docs-only change, no code tests involved. Verified: repo-wide search confirms only the two legitimate response_anomaly mentions remain in models.md (the path naming-consistency note and the CLI usage precaution), with zero dangling references; all edited sections keep intact paragraph/code-block flow with zh/en aligned. /readthedocs build can be triggered if needed.

⚠️ BC-breaking (Optional) / 向后不兼容变更(可选)

无 / None.

⚠️ Performance degradation (Optional) / 性能下降(可选)

无 / None.

🌟 Use cases (Optional) / 使用案例(可选)

不涉及新功能 / N.A.

✅ Checklist / 检查列表

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues. / 使用预提交或其他 linting 工具来修复潜在的 lint 问题。
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests. / 修复的 Bug 已完全由单元测试覆盖,导致 Bug 的情况应在单元测试中添加。
  • The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness. / 此拉取请求中的修改已完全由单元测试覆盖。如果不是,请添加更多单元测试以确保正确性。
  • All relevant documentation (API docs, docstrings, example tutorials) has been updated to reflect these changes. / 所有相关文档(API 文档、文档字符串、示例教程)已更新以反映这些更改。

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects. / 如果此拉取请求对下游或其他相关项目有潜在影响,应在那些项目中测试此 PR。(纯文档修改,预计无下游影响 / docs-only change, no expected downstream impact)
  • CLA has been signed and all committers have signed the CLA in this PR. / CLA 已签署,且本 PR 中的所有提交者均已签署 CLA。

👥 Collaboration Info / 协作信息

🌟 Useful CI Command / 实用的CI命令

Command / 命令 Introduction / 介绍
/gemini review Performs a code review for the current pull request in its current state by Gemini. / 对当前拉取请求在当前状态下由 Gemini 执行代码审核。
/gemini summary Provides a summary of the current pull request in its current state by Gemini. / 对当前拉取请求在当前状态下由 Gemini 提供摘要。
/gemini help Displays a list of available commands of Gemini. / 显示 Gemini 可用命令的列表。
/readthedocs build Triggers a build of the documentation for the current pull request in its current state by Read the Docs. / 触发当前拉取请求在当前状态下由 Read the Docs 构建文档。
/pr_check 手动重新触发 PR 合入质量检查工作流(PR Quality Check),并在 PR 上评论即可生效。 / Manually re-runs the PR Quality Check workflow by commenting on the pull request.

The paragraph stating that the common model templates do not preconfigure response_anomaly adds no information (an unset field is the default state) and references a response_anomaly example block that no longer exists after AISBench#502, leaving a dangling pointer; remove it from zh/en.
The archive finalization step decides between keeping the staging data as archive or cleaning it up depending on the retention mode; use or (zh: 或) instead of and (zh: 及) in zh/en.
Copilot AI lite review requested due to automatic review settings September 21, 2026 01:56
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:no_review

  • 无检视意见:请至少邀请一位 reviewer 提交检视意见(Approve / Request changes / Comment 均可)。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

@github-actions github-actions Bot added no_review PR 未包含任何检视意见,合入前必须包含检视意见 docs labels Sep 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No blocking issues were identified; remaining feedback is limited to minor documentation wording.

Review effort: Lite
Findings: None

What changed in this PR

This docs-only PR polishes response anomaly detection documentation in Chinese and English.

Changes:

  • Removes obsolete response_anomaly configuration guidance.
  • Updates archive-finalization wording in both tutorials.
File Description
docs/​source_zh_cn/​base_tutorials/​all_params/​models.md Removes obsolete configuration guidance
docs/​source_zh_cn/​advanced_tutorials/​response_anomaly_detection.md Updates archive-finalization wording
docs/​source_en/​base_tutorials/​all_params/​models.md Removes obsolete configuration guidance
docs/​source_en/​advanced_tutorials/​response_anomaly_detection.md Updates archive-finalization wording

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Libotry

Libotry commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

[review] 资料问题修改,修改量少,质量高,无检视意见

1 similar comment
@Libotry

Libotry commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

[review] 资料问题修改,修改量少,质量高,无检视意见

@github-actions github-actions Bot removed the no_review PR 未包含任何检视意见,合入前必须包含检视意见 label Sep 21, 2026
@github-actions

Copy link
Copy Markdown

✅ PR 合入质量五项检查全部通过,允许合入。

@zhongzhouTan-coder zhongzhouTan-coder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zhongzhouTan-coder
zhongzhouTan-coder merged commit 1bebc18 into AISBench:master Sep 21, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants