@ai-toolkit/azure
v1.2.1
Published
The **[Azure provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/azure)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model support for the Azure OpenAI API.
Downloads
49
Readme
AI TOOLKIT - Azure OpenAI Provider
The Azure provider for the AI TOOLKIT contains language model support for the Azure OpenAI API.
Setup
The Azure provider is available in the @ai-toolkit/azure module. You can install it with
npm i @ai-toolkit/azureProvider Instance
You can import the default provider instance azure from @ai-toolkit/azure:
import { azure } from '@ai-toolkit/azure';Example
import { azure } from '@ai-toolkit/azure';
import { generateText } from 'ai-toolkit';
const { text } = await generateText({
model: azure('gpt-4o'), // your deployment name
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});Documentation
Please check out the Azure provider for more information.
