Vai al contenuto principale

openai/gpt-5.4-mini/chat

GPT-5.4 Mini legge segnalazioni, frammenti di codice e schermate. Può proporre una verifica mirata oppure chiedere all’applicazione di eseguirla.

Input $0.60Output $3.60per 1 milione di token20% sotto il prezzo di listino del produttore del modelloInput in cache $0.06Prezzo ufficiale di OpenAIInput $0.75Output $4.50

Playground

Questi esempi sono stati scritti per questo endpoint. Sostituisci il prompt e gli URL dei media di esempio con input tuoi e raggiungibili, poi controlla il preventivo aggiornato e la disponibilità del modello prima di inviare.

  • Risposta del modello

    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**.

    Individua la perdita di precisione
    • 384
    • none
    Usa questo esempio
  • Risposta del modello

    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.

    Testa i limiti validi e non validi
    • 384
    • none
    Usa questo esempio
  • Risposta del modello

    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.

    Rispetta Retry-After
    • 384
    • none
    Usa questo esempio

Questo esempio parte da Input $0.60 / Output $3.60 per 1 milione di token. Il Playground aggiorna la stima quando cambi le impostazioni.