本文へスキップ

openai/gpt-5.4-mini/chat

GPT-5.4 Mini は障害報告、コードの抜粋、画面キャプチャを突き合わせます。次に確かめることを文章で返すほか、調査用の関数を呼ぶよう求めることもできます。

入力 $0.60出力 $3.60100 万トークンあたり公式価格より 20% 安いキャッシュ入力 $0.06OpenAI 公式価格入力 $0.75出力 $4.50

プレイグラウンド

この実行例は、このエンドポイント向けに書き下ろしたものです。プロンプトとサンプル素材の URL は、ご自身がアクセスできるものに差し替えてください。送信前に、最新の見積もりとモデルの提供状況もあわせてご確認ください。

  • モデルの回答

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

    精度が失われる箇所を特定
    • 384
    • none
  • モデルの回答

    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.

    有効・無効な境界値をテスト
    • 384
    • none
  • モデルの回答

    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.

    Retry-After に従う修正
    • 384
    • none

この例は 100 万トークン あたり 入力 $0.60 / 出力 $3.60 からです。設定を変更すると、プレイグラウンドの概算料金がその場で更新されます。