AI
Multi-provider AI hooks built on the Vercel AI SDK. Supports Google Gemini, Anthropic Claude, and OpenAI GPT with streaming out of the box.
npm install @allem-sdk/ai ai @ai-sdk/react # Pick your provider(s) npm install @ai-sdk/google @ai-sdk/anthropic @ai-sdk/openai
AllemAIProvider
Context provider for default AI configuration
useAllemAIConfig
Access the current provider context values
useAllemChat
Chat hook with streaming, message history, and provider context
useAllemCompletion
Text completion hook for single-turn prompts
createAllemChatHandler
Server-side API route handler for chat