mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
The weekly price/context auto-updater only pulled from OpenRouter and Vercel AI Gateway and only wrote openrouter/* and vercel_ai_gateway/* keys, so the native anthropic provider keys (e.g. claude-opus-4-8) were maintained by hand and lagged new releases. Add Anthropic's /v1/models as a source. It is the origin of truth for model existence, context window, and capabilities, so it is at least as fresh as any aggregator. Since that endpoint returns no pricing, the per-token price is copied from the OpenRouter data the script already fetches, matched on a normalized model id. A new model is only added when a price match is found, so we never introduce a silent zero-cost entry, and existing curated entries are never overwritten. Gated on ANTHROPIC_API_KEY so forks and local runs skip the source cleanly. |
||
|---|---|---|
| .. | ||
| codeql | ||
| ISSUE_TEMPLATE | ||
| observatory | ||
| screenshots | ||
| scripts | ||
| workflows | ||
| dependabot.yaml | ||
| deploy-on-aws.png | ||
| deploy-on-gcp.png | ||
| deploy-to-aws.png | ||
| FUNDING.yml | ||
| pull_request_template.md | ||
| template.yaml | ||