Compare commits

...
Author SHA1 Message Date
wassnameandClaudypoo 4e39d32cbb Add the retry overlay file and register it in workflow.yaml
Completes the prior commit: 408/429 join 5XX via x-speakeasy-retries overlay.
Verified offline with `speakeasy overlay apply`: statusCodes -> [5XX, 408, 429].

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-07-05 09:16:26 +08:00
wassnameandClaudypoo 31e1fbac0c 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>
2026-07-05 09:14:18 +08:00
wassname d159a17d88 Merge remote-tracking branch 'upstream/main' into fix/chat-transient-retries
# Conflicts:
#	.genignore
#	src/openrouter/utils/retries.py
2026-07-05 08:50:09 +08:00
wassnameandClaudypoo 12ce0d4304 Genignore utils/retries.py so speakeasy generate keeps the retry changes
The retry response classification (408/429/5XX + transient inner error.code
on 400s) has no overlay or hook surface in Speakeasy, so retries.py must be
hand-maintained. It is tracked in gen.lock, so without a genignore entry the
next `speakeasy generate` overwrites this PR's changes. pylintrc is already
genignored the same way as precedent.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-07-05 08:32:17 +08:00
wassname (Michael J Clark)andCopilot Autofix powered by AI ef31bc8283 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-30 15:03:08 +08:00
wassname bae00aae15 Retry transient OpenRouter errors 2026-06-30 14:56:07 +08:00
2 changed files with 12 additions and 0 deletions
@@ -0,0 +1,11 @@
overlay: 1.0.0
x-speakeasy-jsonpath: rfc9535
info:
title: Retry request-timeout and rate-limit responses
version: 0.0.0
actions:
- target: $["x-speakeasy-retries"].statusCodes
description: Also retry 408 (request timeout) and 429 (rate limit), not just 5XX
update:
- "408"
- "429"
+1
View File
@@ -11,6 +11,7 @@ sources:
- location: .speakeasy/overlays/allof-simplify.overlay.yaml
- location: .speakeasy/overlays/boolean-query-params.overlay.yaml
- location: .speakeasy/overlays/fix-nullable-pagination.overlay.yaml
- location: .speakeasy/overlays/retry-transient-status-codes.overlay.yaml
output: .speakeasy/out.openapi.yaml
registry:
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api