Pular para o conteúdo principal

openai/gpt-5.4-mini/chat

O GPT-5.4 Mini analisa relatos de erro, trechos de código e capturas de tela. Ele pode indicar a próxima verificação ou solicitar uma função de diagnóstico.

Entrada $0.60Saída $3.60por 1 milhão de tokens20% abaixo do preço oficialEntrada em cache $0.06Preço oficial · OpenAIEntrada $0.75Saída $4.50

Playground

Estes exemplos foram escritos para este endpoint. Substitua o prompt e as URLs de mídia de exemplo por suas próprias entradas acessíveis. Antes de enviar, confira a estimativa atual e a disponibilidade do modelo.

  • Resposta do 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 a perda de precisão
    • 384
    • none
    Usar este exemplo
  • Resposta do 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.

    Testar limites válidos e inválidos
    • 384
    • none
    Usar este exemplo
  • Resposta do 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.

    Respeitar Retry-After
    • 384
    • none
    Usar este exemplo

Este exemplo começa em Entrada $0.60 / Saída $3.60 por 1 milhão de tokens. O Playground recalcula a estimativa sempre que você muda as configurações.