1.2.1 • Published 7 months ago

@ai-toolkit/azure v1.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

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.