@imlalitpandit/pi-ai
v1.0.1
Published
Unified LLM API with automatic model discovery and provider configuration
Readme
@rudrax/pi-ai
Unified LLM API with automatic model discovery and provider configuration.
Install
npm install @rudrax/pi-aiUsage
import { getModel, streamSimple } from "@rudrax/pi-ai";
// Get a model
const model = getModel("openai", "gpt-4o");
// Stream responses
for await (const event of streamSimple(model, context, options)) {
// Handle events
}Providers
- OpenAI (Responses & Completions APIs)
- Anthropic
- Google (Gemini)
- AWS Bedrock
License
MIT
