Connecting to Datawizz
Assuming you already have the rest of the SDK installed, you’ll need to install the OpenAI provider for the Vercel AI SDK. You can do this by running the following command:Using Datawizz with the Vercel AI SDK
You can now use the model to generate text, stream outputs and perform any other action supported by the Vercel AI SDK. Here’s an example of how you might generate text using the model:Adding Metadata
Metadata is crucial for tracking the performance of your models and organizing your logs better - Datawizz creates tags from your metadata, and allows you to route requests and train models based on these tags. You can add metadata to your requests using theexperimental_providerMetadata
option in the Vercel AI SDK. Here’s an example of how you might add metadata to your request: