Skip to content

[DOCS] Go SDK retry configuration documents a non-existent RetryOptions API #784

Closed

Description

Summary: The Go SDK README documented retry configuration with a stale API: RetryOptions with MaxRetries, MinDelay, MaxDelay and Timeout. None of those exist - the real type is sdk.RetryConfig with Enabled, MaxAttempts, InitialBackoffSec, MaxBackoffSec, BackoffMultiplier, RetryableStatusCodes and OnRetry.

That stale text told users to disable retries by setting the attempt count to 0, which until now made every SDK call panic on a nil pointer (inference-gateway/sdk issue 200). The SDK README is fixed in inference-gateway/sdk PR 204; if the docs site mirrors or restates the Go SDK retry configuration, it needs the same correction.

Behavior change to document: a non-positive MaxAttempts now sends the request exactly once, the same as Enabled: false.

Affected pages: any Go SDK page covering client options / retry configuration.

Related PR: inference-gateway/sdk#204

Acceptance Criteria:

  • Go SDK retry docs use the real RetryConfig field names
  • Disabling retries is documented as Enabled false
  • Non-positive MaxAttempts is documented as a single request, not a panic

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. moved this to Todo in 2026on Sep 25, 2026
  3. added theissue type on Sep 25, 2026
  4. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @infer can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    Pull Request

    #795

    ✅ Infer Result: Success

    Done. Issue #784 is resolved in PR #795 (marked ready for review).

    What I found: The docs site never carried the stale RetryOptions/MaxRetries/MinDelay/MaxDelay API - a repo-wide grep found zero occurrences. sdks.md's Go SDK "Retry and backoff" section already documents the real sdk.RetryConfig fields and disabling via Enabled: false. The only gap vs the SDK fix (inference-gateway/sdk PR 204) was the new non-positive MaxAttempts behavior.

    What changed (1 line in sdks.md): The MaxAttempts table row now states that a value below 1 sends the request exactly once, the same as Enabled: false - the behavior change to document, mirroring the corrected SDK README.

    Validation: bun run format:check, bun run lint:md, and bun run build all pass; tree clean, branch pushed, no follow-up issues needed (docs-only change, SDK fix already merged).

    Skipped: no rewrite of the whole retry section - the remaining two acceptance criteria were already satisfied, so only the missing behavior sentence was added.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 2m 39s

    Tokens: 823,333 in · 9,609 out · 832,942 total (23 requests)

    Tool calls: 33 total · 100% success rate

    Traces
    Session: 1790379407-b2a34d83
    
    session (headless, success)                                                                        2m32s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.7s
    ├── execute_tool Grep call_072pyamy                                                                 1.6s
    ├── execute_tool Grep call_pgvt1kgx                                                                 1.8s
    ├── execute_tool Read call_wo6rr1tb                                                                193µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.5s
    ├── execute_tool TodoWrite call_wplnbcuz                                                            72µs
    ├── execute_tool Grep call_plxyg817                                                                  2ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.5s
    ├── execute_tool Grep call_wmcjgqmj                                                                502µs
    ├── execute_tool Read call_eauznm2y                                                                252µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                12.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            12.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.8s
    ├── execute_tool Bash call_plez6d3b                                                                402ms
    ├── execute_tool Bash call_maam4gvk                                                                405ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.5s
    ├── execute_tool Grep call_c5iol7pi                                                                733ms
    ├── execute_tool WebFetch call_pstubr88                                                            144ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
    ├── execute_tool Grep call_mg2ld8n6                                                                212µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                14.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            14.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.7s
    ├── execute_tool Bash call_3hz1x0ep                                                                 1.3s
    ├── execute_tool Bash call_mrqtv16q                                                                 46ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Bash call_p2gcpb9n                                                                613ms
    ├── execute_tool Memory call_yxcuw89j                                                              112µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.6s
    ├── execute_tool TodoWrite call_hq93msbo                                                            67µs
    ├── execute_tool Edit call_wyakoi6a                                                                825µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Bash call_46s4rhvj                                                                 13ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
    ├── execute_tool Bash call_wt8w8qxs                                                                 4.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_xw7gdpoy                                                                 3.8s
    ├── execute_tool Bash call_6qay1bvd                                                                 1.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_z5k6simu                                                                26.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.3s
    ├── execute_tool Bash call_z19tjzav                                                                  4ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Bash call_m44xdxtb                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_mjxyyth6                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Bash call_mrtee3nz                                                                 1.9s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.6s
    ├── execute_tool Write call_yo1x6qod                                                               675µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_pmuschqt                                                                 2.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    ├── execute_tool Bash call_e6zubqib                                                                728ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_a9iebhhu                                                                 1.1s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool TodoWrite call_k63a6bcs                                                            65µs
    ├── execute_tool Bash call_ldfua71u                                                                  5ms
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.3s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
                ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 18    │ 0%    │ 2503ms │
    │ Grep      │ 6     │ 17%   │ 684ms  │
    │ TodoWrite │ 3     │ 0%    │ 57µs   │
    │ Read      │ 2     │ 0%    │ 202µs  │
    │ WebFetch  │ 1     │ 0%    │ 145ms  │
    │ Memory    │ 1     │ 0%    │ 103µs  │
    │ Edit      │ 1     │ 0%    │ 810µs  │
    │ Write     │ 1     │ 0%    │ 667µs  │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────┬────────┬────────┬────────────┬────────┬──────╮
    │ Model                      │ Prompt │ Cached │ Completion │ Total  │ Cost │
    ├────────────────────────────┼────────┼────────┼────────────┼────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 823333 │ 582400 │ 9609       │ 832942 │ -    │
    ╰────────────────────────────┴────────┴────────┴────────────┴────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  6. moved this from Todo to In progress in 2026on Sep 25, 2026
  7. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions