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

Abierto
#9,138 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
46/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
16.9k
Forks
1.3k
Merge medio
1 d 4 h
PR fusionados (30 d)
814

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lidge-jun/opencodex

Todos los issues de lidge-jun/opencodex

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.