Skip to content

fix(provider): retry responses API without include on 400 rejection - #10896

Closed
kaizen403 wants to merge 1 commit into
anomalyco:devfrom
kaizen403:fix/scaleway-responses-include-retry
Closed

kaizen403 wants to merge 1 commit into
anomalyco:devfrom
kaizen403:fix/scaleway-responses-include-retry

Conversation

@kaizen403

@kaizen403 kaizen403 commented Jan 27, 2026 •

Copy link
Copy Markdown

Fixes #7524

when using scaleway's gpt-oss-120b with the responses api, requests fail because scaleway doesn't support the include parameter that the ai sdk adds automatically.

this adds retry logic to the fetch wrapper - if a /responses request returns 400 with an error mentioning "include is not supported", it strips the include field and retries once.

changes:

  • added retry-on-400 logic in provider.ts fetch wrapper
  • logs when retry happens for debugging
  • added tests with mock server covering retry and no-retry cases
  • fixed missing plugin mocks in amazon-bedrock tests that were causing unrelated failures

tested with bun test test/provider/ (165 pass) and bun run typecheck (all packages pass)

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scaleway/gpt-oss-120b unable to call tools with chat/completions endpoint

1 participant