Native OpenAI Ultrafast requests show Standard API value in Logs and usage totals

Aperta
#9,138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
46/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
analytics, backend

Direzione di ricerca

Read the native OpenAI request and response tier handling, then trace the pricing path used by Logs and usage totals, including per-attempt pricing for mixed routes. Check how transmitted and authoritative tiers affect fresh input, cached input, and output prices across model and date schedules. Reproduce with the synthetic token counts in the issue; done when Ultrafast is estimated only from a transmitted tier, while authoritative Standard responses and explicit refusals take precedence.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Reproduction

On OpenCodex 2.100.8, send a native Codex Responses request to gpt-6.2-sol using the Ultrafast service tier. In Logs the request has the Ultrafast badge, but its estimated API value uses Standard rates. The same pricing path feeds usage totals.

Here is a synthetic example with no user data. During the published 3× pricing period, use 100,000 input tokens (90,000 cached) and 100 output tokens. The Standard quote is $0.0300. With an authoritative Ultrafast response, the Ultrafast quote should be $0.0900.

Native tier evidence

In the affected native path the recorded outcome has wireKind: "service-tier", wireValue: "ultrafast", responseServiceTier: "default", and responseTierAuthoritative: false. It can also report fastDowngradeReason: "wire-unavailable" even though the outgoing tier was serialized. For that case, an estimate based on the transmitted tier should be labeled as estimated. An authoritative Standard response or explicit refusal should still take precedence. A requested-only tier is insufficient to infer the Ultrafast price.

Please apply the published model- and date-specific schedule to fresh input, cached input and output in both Logs and usage totals, including per-attempt pricing for mixed routes. The example describes API-equivalent value, not a subscription charge.

OpenAI API pricing, Ultrafast

Lingua principale
TypeScript
Stelle
16.9k
Fork
1.3k
Merge medio
1g 4h
PR unite (30g)
814

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lidge-jun/opencodex

Tutte le issue di lidge-jun/opencodex

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.