llm_models_spider
Auto-updated registry of LLM model capabilities, arena rankings, and pricing.
Features
- Zero runtime dependencies - Pure compile-time lookups
- Multi-source data - Aggregated from OpenRouter, LiteLLM, and Chatbot Arena
- Rich model profiles - Capabilities, pricing, context windows, and arena rankings
- Auto-updated - Model lists fetched daily via GitHub Actions
- Fallback patterns - Unknown models matched against common naming patterns
Installation
[]
= "0.1"
Usage
Capability Checks
use ;
// Vision support
assert!;
assert!;
assert!;
assert!;
// Audio, video, PDF support
assert!;
assert!;
assert!;
// Text-only check
assert!;
assert!;
Model Profiles
Get full model intelligence — capabilities, pricing, context window, and arena ranking:
use ;
if let Some = model_profile
// Arena ranking (0.0-100.0, higher is better)
if let Some = arena_rank
Full Capabilities Lookup
use ModelCapabilities;
if let Some = lookup
Direct Model Info Access
For advanced use cases, access the raw MODEL_INFO array directly:
use MODEL_INFO;
// MODEL_INFO is sorted by name — use binary search for fast lookups
let idx = MODEL_INFO.binary_search_by;
if let Ok = idx
Data Sources
Model data is aggregated from three sources:
| Source | Data Provided |
|---|---|
| OpenRouter API | Modalities (vision, audio), pricing, context length |
| LiteLLM | Vision, audio, video, PDF support, pricing, context window |
| Chatbot Arena | Arena Elo scores (normalized to 0-100) |
Merge strategy:
- Capabilities: OR across sources (if any source says vision=true, it's vision)
- Pricing: Prefer LiteLLM (more granular), fall back to OpenRouter
- Context window: Take max across sources
- Arena scores: From Chatbot Arena only
Fallback Patterns
For models not yet in any data source, the library falls back to pattern matching:
| Pattern | Examples |
|---|---|
gpt-4o, gpt-4-turbo, gpt-4-vision |
OpenAI vision models |
claude-3, claude-4 |
Anthropic multimodal |
gemini-1.5, gemini-2 |
Google Gemini |
qwen2-vl, qwen-vl |
Alibaba Qwen VL |
-vision, -vl suffix |
Generic vision indicators |
Manual Update
To manually update the model lists:
License
MIT License - see LICENSE for details.