The Vercel AI SDK is a powerful framework for creating AI-powered applications, making it easy to build AI features with streaming, function-calling and other capabilities built in. You can easily integrate Datawizz with the Vercel AI SDK to create powerful AI applications. The integration with Datawizz will use the AI SDK’s OpenAI provider and Datawizz’s OpenAI-compatible API, so for the most part, this will look a lot like using OpenAI with the Vercel AI SDK. You can see the reference for the OpenAI provider for additional information.Documentation Index
Fetch the complete documentation index at: https://docs.datawizz.ai/llms.txt
Use this file to discover all available pages before exploring further.
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: