@akihiiii/ai
v0.1.0-rc.1
Published
LLM provider adapters for the Zleap Agent SDK
Maintainers
Readme
@akihiiii/ai
LLM provider adapters for the Zleap Agent SDK.
Overview
This package provides the AI abstraction layer:
- Provider adapters —
AnthropicProvider,OpenAiCompatibleProvider - Model registry —
ProviderRegistry,ModelRegistry,AiRegistries - Streaming — SSE parsing, streaming event utilities
- Embeddings —
embed(),fauxEmbed()— vector embedding functions - Pricing —
ModelPricing,MODEL_PRICING,calculateCost()— usage cost calculation - Zero runtime dependencies — pure TypeScript abstraction layer
Install
npm install @akihiiii/aiNote: Most users should install
@akihiiii/sdkinstead, which re-exports the public API.
Supported Models
Pricing data included for: Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5, DeepSeek Chat/Reasoner, GPT-4o, GPT-4o-mini.
License
MIT
