0.1.2 • Published 10 months ago
fereai-provider v0.1.2
FereAI Provider for the Vercel AI SDK
The FereAI Provider for the Vercel AI SDK contains language model support for the FereAI APIs.
Requirements
This provider requires FereAI UserId and API Key to be set in the function configuration. You can set them too in the FEREAI_USER_ID and FEREAI_API_KEY environment variables.
Setup
The FereAI provider is available in the fereai-provider module. You can install it with
npm i fereai-provideror
pnpm add fereai-provideror
yarn add fereai-providerProvider Instance
You can import the default provider instance fereai from fereai-provider:
import { fereai } from 'fereai-provider';Example
import { fereai } from 'fereai-provider';
import { generateText } from 'ai';
const { text } = await generateText({
model: fereai('ProAgent'),
prompt: 'Please tell me which ones would be a good buy in the current environment',
});Documentation
Please check out the FereAI provider documentation for more information.