Skip to content

docs: add retry_codes configuration documentation #824

Description

@lizhengfeng101

Context

PR #818 introduced the retry_codes configuration field that allows users to specify additional 4xx status codes to trigger retry. The feature has been merged but the documentation was not updated.

What's missing

The following documentation files need to add retry_codes field description:

  • pages/src/content/docs/en/configuration.md
  • pages/src/content/docs/zh/configuration.md
  • pages/src/content/docs/ja/configuration.md
  • pages/src/content/docs/ru/configuration.md

Should document:

  • Field name: retry_codes (array of integers)
  • Where it can be set: llm.retry_codes or custom_providers.<name>.retry_codes
  • Valid values: 4xx codes only (excluding 408/409/429 which are already retried by the SDK; 5xx are all retried by default)
  • Behavior: redundant codes (408/409/429) are silently filtered with a warning at config set time
  • CLI usage: ocr config set llm.retry_codes 403,400

Reference

Per CONTRIBUTING.md:188, user-facing changes must sync documentation.

Follow-up from #818.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions