Add AI capabilities to any NovaHelm project. Built on Vercel AI SDK with first-class support for Anthropic Claude, OpenAI, and Ollama. Includes RAG with pgvector embeddings, streaming responses, conversation history, rate limiting, and usage tracking.
@novahelm/aiimport { createAIProvider } from "@novahelm/ai"
const ai = createAIProvider({
provider: "anthropic",
model: "claude-sonnet-4-5-20250514",
})
// Stream a response with RAG context
const stream = await ai.chat({
messages,
context: { rag: true },
})Install
pnpm add @novahelm/ai