Przejdź do treści głównej

openai/gpt-5.4-mini/chat

GPT-5.4 Mini zestawia zgłoszenie błędu z fragmentem kodu i zrzutem ekranu. Może opisać kolejny krok diagnostyczny lub poprosić o wywołanie funkcji.

Wejście $0.60Wyjście $3.60za 1 mln tokenów20% poniżej ceny katalogowej twórcy modeluWejście z pamięci podręcznej $0.06Cena oficjalna OpenAIWejście $0.75Wyjście $4.50

Obszar roboczy

Te przykłady napisano specjalnie dla tego endpointu. Podmień prompt i przykładowe adresy mediów na własne, dostępne materiały, a przed wysłaniem sprawdź aktualną wycenę i dostępność modelu.

  • Odpowiedź modelu

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

    Znajdź miejsce utraty precyzji
    • 384
    • none
    Użyj tego przykładu
  • Odpowiedź modelu

    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.

    Sprawdź prawidłowe i błędne granice
    • 384
    • none
    Użyj tego przykładu
  • Odpowiedź modelu

    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.

    Uwzględnij Retry-After
    • 384
    • none
    Użyj tego przykładu

Ten przykład zaczyna się od Wejście $0.60 / Wyjście $3.60 za 1 mln tokenów. Playground przelicza szacunek po każdej zmianie ustawień.