パラメーター
Chat Completions、Responses、Messagesでは、同じ目的のパラメーターでも名前が異なります。
| 目的 | Chat Completions | Responses | Messages |
|---|---|---|---|
| モデル | model | model | model |
| 入力 | messages | input | messages |
| システムプロンプト | messages の system ロール | instructions | system |
| 出力トークンの上限 | max_tokens、max_completion_tokens | max_output_tokens | max_tokens |
| 生成を終了させる文字列 | stop | なし | stop_sequences |
| ランダム性 | temperature、top_p、top_k、min_p | temperature、top_p | temperature、top_p、top_k |
| 思考(reasoning) | reasoning_effort | reasoning | thinking |
| ツール | tools、tool_choice | tools、tool_choice | tools、tool_choice |
| ストリーミング | stream | stream | stream |
出力トークンの上限を省略した場合は、どのエンドポイントでも 4096 になります。
各パラメーターの説明は、エンドポイントのページを参照してください。