You can use the chat completion endpoint with Vercel AI SDK under two lines of code change.

Extra parameters are not yet supported by the Vercel SDK as of June 4 1:12 PM. It will be live when the Vercel SDK is updated.