Menu

Azure AI Provider for the Vercel AI SDK now available - Vercel
📰

Azure AI Provider for the Vercel AI SDK now available - Vercel

Vercel News·Lars Grammel·about 13 hours ago
#4KDMbvlK
#vercel#azure#provider#generatetext#install
Reading 0:00
15s threshold

The Vercel AI SDK now supports Azure AI services through a new official provider. To use the provider, install the relevant package:

pnpm install ai @ai-sdk/azure

You can then use the provider with all AI SDK Core methods. For example, here's how you can use it with generateText:

import { azure } from '@ai-sdk/azure';

import { generateText } from 'ai';

const { text } = await generateText({

model: azure('your-deployment-name'),

prompt: 'Write a vegetarian lasagna recipe for 4 people.',

});

Using the Azure provider with the Vercel AI SDK

For more information, please see the documentation.