Files
tokens-reef/backend/resources/model-pricing
User 5ca850700b
Some checks failed
CI / test (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled
feat: comprehensive review optimizations and Chinese model support
- Add fallback pricing for 10 Chinese AI providers (DeepSeek, Qwen, GLM,
  Moonshot, Doubao, MiniMax, ERNIE, Spark, Hunyuan, Yi) with 38 test cases
- Add 32 Chinese model entries to pricing JSON (qwen-long, qwq-32b,
  glm-4-air, spark-max/pro/lite, hunyuan-pro/standard/lite, etc.)
- Add 6 Chinese API domains to SSRF allowlist
- Fix XSS vulnerability in HomeView.vue with DOMPurify sanitization
- Change DB SSL default from 'disable' to 'prefer' with security comment
- Replace hardcoded admin password in config.example.yaml
- Enable @typescript-eslint/no-explicit-any as warning
- Add vite-plugin-compression for gzip production builds
- Add Prettier and EditorConfig configurations
- Fix missing context import in sticky_session_test.go
2026-04-12 22:18:35 +08:00
..

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