mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
Retry 408/429 via x-speakeasy-retries overlay instead of editing generated code
Reverts the hand-edits to the generated utils/retries.py, its .genignore entry, and the test. Adds an overlay so 408/429 join 5XX in the retry config, regenerating cleanly per CONTRIBUTING (generated code is not edited directly). Verified with `speakeasy overlay apply`: statusCodes -> [5XX, 408, 429]. The 400-with-transient-inner-error.code case is not portable to the SDK (status-only retry config, hooks run outside the retry loop) and is handled client-side instead. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
pylintrc
|
||||
docs/docs.json
|
||||
docs/overview.mdx
|
||||
# Owns retry response classification (408/429/5XX + transient inner error.code on 400s).
|
||||
# Speakeasy has no overlay/hook surface for the 400-inner-code case, so this file is
|
||||
# hand-maintained; genignore stops `speakeasy generate` from overwriting it. -- Claude
|
||||
src/openrouter/utils/retries.py
|
||||
|
||||
Reference in New Issue
Block a user