Skip to content

feat(open-responses): add option to pass reasoning summary for OpenResponses#14115

Merged
gr2m merged 9 commits into
mainfrom
aayush/open-responses-reasoning-summary
Apr 7, 2026
Merged

feat(open-responses): add option to pass reasoning summary for OpenResponses#14115
gr2m merged 9 commits into
mainfrom
aayush/open-responses-reasoning-summary

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

@aayush-kapoor aayush-kapoor commented Apr 3, 2026

Background

#13439

the open-responses provider did not parse the providerOptions passed for a model and was ignoring options such as reasoning.summary. it already had the api structure setup - ReasoningParam but wasn't

the original issue talks about AI SDK not parsing the reasoning effort but reasoning was added as a top level param and was taken care of

Summary

  • import the parseProviderOptions function to parse the provider options passed along with an open-responses provider
  • track the provider name set when using createOpenResponses so that provider option namespace uses the same value (and doesn't pass if not the same)
  • include the reasoningSummary option in request

Manual Verification

verified by running the example examples/ai-functions/src/generate-text/open-responses/lmstudio-reasoning.ts

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

fixes #13439

@tigent tigent Bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented provider/openai-compatible Issues related to the @ai-sdk/openai-compatible provider labels Apr 3, 2026
@aayush-kapoor aayush-kapoor added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 3, 2026
@gr2m gr2m merged commit e69a836 into main Apr 7, 2026
18 checks passed
@gr2m gr2m deleted the aayush/open-responses-reasoning-summary branch April 7, 2026 22:02
ghost pushed a commit that referenced this pull request Apr 7, 2026
@ghost ghost removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 7, 2026
@ghost
Copy link
Copy Markdown

ghost commented Apr 7, 2026

⚠️ Backport to release-v6.0 created but has conflicts: #14208

@ghost
Copy link
Copy Markdown

ghost commented Apr 7, 2026

🚀 Published in:

Package Version
@ai-sdk/open-responses 2.0.0-beta.17

aayush-kapoor added a commit that referenced this pull request Apr 8, 2026
…for OpenResponses (#14208)

This is an automated backport of #14115 to the release-v6.0 branch. FYI
@aayush-kapoor
This backport has conflicts that need to be resolved manually.

### `git cherry-pick` output

```
Auto-merging packages/open-responses/src/open-responses-provider.ts
Auto-merging packages/open-responses/src/responses/open-responses-language-model.test.ts
CONFLICT (content): Merge conflict in packages/open-responses/src/responses/open-responses-language-model.test.ts
Auto-merging packages/open-responses/src/responses/open-responses-language-model.ts
CONFLICT (content): Merge conflict in packages/open-responses/src/responses/open-responses-language-model.ts
error: could not apply e69a836... feat(open-responses): add option to pass reasoning summary for OpenResponses (#14115)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
```

---------

Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com>
Co-authored-by: Aayush Kapoor <aayushkapoor34@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented provider/openai-compatible Issues related to the @ai-sdk/openai-compatible provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@ai-sdk/open-responses does not support reasoning parameters (reasoningEffort, reasoningSummary)

2 participants