@microfox/ai
v1.2.1
Published
Wrapper for AI SDK by Vercel - Only for Internal use of microfox ai packages
Readme
Note: This package is deprecated and will no longer be maintained. Please consider using an alternative.

AI SDK
The AI SDK is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Node.js.
To learn more about how to use the AI SDK, check out our API Reference and Documentation.
Usage
AI SDK Core
The AI SDK Core module provides a unified API to interact with model providers like OpenAI, Anthropic, Google, and more.
@/index.ts (Node.js Runtime)
import { generateText } from '@microfox/ai';
import { OpenAiProvider } from '@microfox/ai-provider-openai';
const openai = new OpenAiProvider({
apiKey: process.env.OPENAI_API_KEY!,
});
const { text } = await generateText({
model: openai.languageModel('gpt-4o'),
system: 'You are a friendly assistant!',
prompt: 'Why is the sky blue?',
});
console.log(text);