Skip to content

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

Open
aayush-kapoor wants to merge 5 commits intomainfrom
aayush/open-responses-reasoning-summary
Open

feat(open-responses): add option to pass reasoning summary for OpenResponses#14115
aayush-kapoor wants to merge 5 commits intomainfrom
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
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 backport Admins only: add this label to a pull request in order to backport it to the prior version 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)

1 participant