本文へ移動
メイン ドキュメント
ドキュメント

推論(reasoning)

レッドチームのモデルは答える前に推論します。推論に使った tokens は completion_tokens に含まれ、max_tokens の内側で数えられます。max_tokens が小さいと推論だけで使い切り、content が空のまま finish_reason: length になります。

JSON
// too small: 32 tokens of reasoning, no answer
{"max_tokens": 32}"finish_reason": "length", "content": null

// give the answer room (the free tier allows up to 32768)
{"max_tokens": 2048}

パラメータ