GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Usage pricing is order-dependent across provider-qualified models · Issue #5797 · pingdotgg/t3code

[Bug]: Usage pricing is order-dependent across provider-qualified models #5797

New issue
Copy link
New issue
Copy link
Closed
#8806
Closed
[Bug]: Usage pricing is order-dependent across provider-qualified models#5797
#8806
Copy link

Description

@caezium
caezium
opened on Aug 9, 2026
Issue body actions

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Parse a LiteLLM rate document containing both a canonical model key such as gpt-5 and one or more provider-qualified keys ending in the same model name, such as replicate/openai/gpt-5.
  2. Give the entries different or incomplete cache rates.
  3. Change their insertion order.
  4. Look up pricing for the bare transcript model gpt-5.

The usage rate-table parser strips every provider prefix before inserting entries into a single map, so all of these keys collide.

Expected behavior

A bare transcript model should resolve deterministically to the canonical bare-model rate. Provider-qualified aliases should only resolve to their own provider-specific entry, or use an explicit deterministic fallback when no canonical entry exists. JSON entry order must not change pricing.

Actual behavior

The last normalized collision silently wins. A provider-qualified entry can overwrite the canonical entry and supply different base rates or omit cache rates. In the current LiteLLM document, this can make cached input fall back to full input price rather than the canonical cache-read price.

Impact

Major degradation or frequent failure

Version or commit

main @ 963ebf5

Environment

Provider-independent; reproduced against the server usage pricing parser and current LiteLLM model-price document.

Logs, stack traces, or screenshots

The same logical entries produce different lookup results when their object order is reversed.

Workaround

None in the application. Users must treat affected API-equivalent cost estimates as unreliable.

Reacted by Nick Anisimov

Activity

  1. none23 commented on Aug 28, 2026

    @none23
    none23
    on Aug 28, 2026
    Contributor
    More actions

    Experiencing this issue - that's a machine with a single $100 Claude sub
    Basically, Claude is counted an cacheless

    Image
  2. JakubBakowski commented on Aug 28, 2026

    @JakubBakowski
    JakubBakowski
    on Aug 28, 2026
    More actions

    Confirmed on T3 Code Nightly 0.0.36-nightly.20260828.1209, Claude Code 2.1.250.

    T3 displays nearly $5K, while Anthropic API billing is approximately $600. Repricing the local transcript tokens with canonical Claude cache rates gives approximately $605.

    The current LiteLLM document ends the normalized claude-fable-5 collision with deepinfra/anthropic/claude-fable-5, which has no cache-read/write fields. Consequently, T3 falls back to the full $10/MTok input rate instead of Fable’s $1/MTok cache-read rate. This appears to be a real-world reproduction of #5797.

  3. maria-rcks
    closed this as completedin #8806on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.