Files
Developer da36506b89 fix: resolve P0/P1 code quality issues
P0 fixes:
- ModelError.Is(): use exact matching instead of substring contains()
- shouldClearStickySession: add context param for cancellation/tracing

P1 fixes:
- TODO stubs: return 501 Not Implemented errors
- validateInstanceSignature: deduplicate to shared validateCodeSignature()
- Error messages: standardize to English only
- http.go: remove pseudo if-else with duplicate branches
2026-03-31 11:39:18 +08:00

1.4 KiB

Model Pricing Data

This directory contains a local copy of the mirrored model pricing data as a fallback mechanism.

Source

The original file is maintained by the LiteLLM project and mirrored into the price-mirror branch of this repository via GitHub Actions:

Purpose

This local copy serves as a fallback when the remote file cannot be downloaded due to:

  • Network restrictions
  • Firewall rules
  • DNS resolution issues
  • GitHub being blocked in certain regions
  • Docker container network limitations

Update Process

The pricingService will:

  1. First attempt to download the latest version from GitHub
  2. If download fails, use this local copy as fallback
  3. Log a warning when using the fallback file

Manual Update

To manually update this file with the latest pricing data (if automation is unavailable):

curl -s https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json -o model_prices_and_context_window.json

File Format

The file contains JSON data with model pricing information including:

  • Model names and identifiers
  • Input/output token costs
  • Context window sizes
  • Model capabilities

Last updated: 2025-08-10