Skip to content

Conversation

@rahulbhadja
Copy link
Collaborator

@rahulbhadja rahulbhadja commented Oct 28, 2025

Background

Summary

  • Make the main azure() factory and languageModel alias invoke the Responses API by default.
  • Update the Azure provider tests to cover the new default responses flow..
  • Add an example src/generate-text/azure-responses-default.ts that demonstrates the default responses usage.
  • add note in Azure OpenAI provider docs about the new default.

Manual Verification

  • ran example examples/ai-core/src/generate-text/azure-responses-default.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)

Future Work

N/A

Related Issues

Fixes #8596 and #9890

@rahulbhadja
Copy link
Collaborator Author

hi @gr2m , addressed the issue from the Azure community discussion. Let me know if any changes are needed. Thanks

@rahulbhadja rahulbhadja requested a review from gr2m October 28, 2025 23:26
@tsuzaki430
Copy link
Collaborator

@rahulbhadja

Hello.
Thank you for creating this pull request. I tested it by actually touching it and found no issues.
There is currently a conflict, but I think we can proceed with merging once it is resolved🚀

@rahulbhadja
Copy link
Collaborator Author

@rahulbhadja

Hello. Thank you for creating this pull request. I tested it by actually touching it and found no issues. There is currently a conflict, but I think we can proceed with merging once it is resolved🚀

thanks @tsuzaki430 for your review, once @gr2m gives greenlight we can solve confilicts

Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you @rahulbhadja for putting it together and thank you @tsuzaki430 for testing!

@gr2m gr2m mentioned this pull request Nov 7, 2025
19 tasks
@gr2m gr2m enabled auto-merge (squash) November 7, 2025 23:08
@gr2m gr2m merged commit 68cedbf into vercel:main Nov 7, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to use OpenAI responses instead of chat completion when using AI Gateway

3 participants