vercel / ai

Build AI-powered applications with React, Svelte, Vue, and Solid
https://sdk.vercel.ai/docs
Other
10.18k stars 1.53k forks source link

feat (provider): Define type for ObjectGenerationMode. #3816

Closed shaper closed 20 hours ago

shaper commented 1 day ago

As we generalize an OpenAI-compatible base provider we need to surface this mode setting to a concrete provider implementation, catalyzing the need to define and export a named type for the possible values. See one sample usage site.

lgrammel commented 1 day ago

This needs a changeset for provider to ship.