1.2.1 • Published 7 months ago
@ai-toolkit/azure v1.2.1
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/azure
Provider 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.
1.2.1
7 months ago