Skip to content

docs: add retry_codes configuration documentation #824

Closed

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.

Activity

  1. added
    documentation
    enhancement
    good first issue
    help wanted
    on Aug 10, 2026
  2. Qiyuanqiii commented on Aug 10, 2026

    @Qiyuanqiii
    Contributor

    我想试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions