Skip to content

How to pass body to streamObject() #1708

Answered by lgrammel
ndrsfel asked this question in Help
Discussion options

You must be logged in to vote

You can create a custom openai provider instance and add headers: https://sdk.vercel.ai/providers/ai-sdk-providers/openai#provider-instance

The request body cannot be modified atm.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ndrsfel
Comment options

Answer selected by ndrsfel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants