·
0 commits
to 8aebbf0abbe9334c2b22a731f916f11c4b7b68b2
since this release
π Release v2.0.6
Published: @simonorzel26/ai-models@v2.0.6
π Stats
- Total Models: $(node -p "require('./dist/index.cjs').ALL_MODELS.length")
- Providers: $(node -p "require('./dist/index.cjs').getProviders().length") supported providers
- Categories: $(node -p "require('./dist/index.cjs').getCategories().length") categories
π Changes
What's New:
- Updated model types from latest Vercel AI SDK providers
- Improved TypeScript type definitions and utility functions
- Updated documentation with current statistics
Versioning:
- π‘ Minor: New @ai-sdk versions with models and features
- π’ Patch: Model type updates or maintenance releases
π¦ Installation
npm install @simonorzel26/ai-models
# or
bun add @simonorzel26/ai-models
# or
yarn add @simonorzel26/ai-modelsπ οΈ Usage
import { getModelsByProvider, ALL_MODELS } from '@simonorzel26/ai-models';
// Get all OpenAI models
const openaiModels = getModelsByProvider('openai');
// Get all chat models
const chatModels = getModelsByCategory('chat');
// Access all models
console.log(\`Total models: \${ALL_MODELS.length}\`);