Ir al contenido principal

openai/gpt-5.4-mini/chat

GPT-5.4 Mini lee informes de errores, fragmentos de código y capturas. Puede proponer la siguiente comprobación por escrito o pedir una función de diagnóstico.

Entrada $0.60Salida $3.60por 1 millón de tokens20% por debajo del precio oficialEntrada en caché $0.06Precio oficial de OpenAIEntrada $0.75Salida $4.50

Playground

Estos ejemplos se escribieron para este endpoint. Cambia el prompt y las URL de ejemplo por archivos tuyos accesibles y, antes de enviar, revisa la estimación al día y la disponibilidad del modelo.

  • Respuesta del modelo

    Check the value after **each step**: - `parseRate("1.25")` - then `saveRate(parsed)` If `parseRate("1.25")` already gives `1`, then **parseRate** lost the fraction. If it returns `1.25` but `saveRate` returns `1`, then **saveRate** lost it. So the key observation is: **inspect the intermediate parsed value before saving**.

    Localizar la pérdida de precisión
    • 384
    • none
  • Respuesta del modelo

    Test these boundary inputs: **0, 1, 4, 5**. - **1** and **4** are the valid lower and upper limits. - **0** is just below the valid range. - **5** is just above the valid range. This is the smallest set that covers both boundary values and their immediately invalid neighbors.

    Probar límites válidos e inválidos
    • 384
    • none
  • Respuesta del modelo

    Add two guards: 1. On 429, read `Retry-After` and sleep that long before retrying: ```python delay = int(resp.headers.get("Retry-After", "1")) time.sleep(delay) ``` 2. Cap retries with a counter: ```python for attempt in range(MAX_RETRIES): resp = request() if resp.status_code != 429: return resp raise RuntimeError("too many 429s") ``` This avoids hammering the server and stops infinite loops.

    Respetar Retry-After
    • 384
    • none

Este ejemplo parte de Entrada $0.60 / Salida $3.60 por 1 millón de tokens. El Playground actualiza la estimación cada vez que cambias los ajustes.