Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

GPT-6 models are sent max_tokens and rejected (not treated as reasoning models)

オープン
#1,605 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@paullizer がすでに取り組んでいます。

2026年10月2日 から。

評価

この issue はまだ評価されていません。

説明

bug P1

Issue

GPT-6 deployments, such as gpt-6-astra, fail with a 400 whenever SimpleChat sets a response length:

Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.

This affects:

  • every workflow model call once the model's token limits are configured, because the workflow budget always sets a response length;
  • chat when Response Length is set.

Found on a SimpleChat POC deployment running the React v2 branch.

Steps to Reproduce

  1. Add a GPT-6 deployment, such as gpt-6-astra, as a model and configure its token limits (context window, output limit, total-generation accounting).
  2. Run a workflow whose agent uses that model. Alternatively, chat with it with Response Length set.

Expected Behavior

SimpleChat sends max_completion_tokens and no temperature, as it does for GPT-5 and o-series models.

Actual Behavior

ModelEndpointBehavior.is_openai_reasoning_model in application/single_app/model_endpoint_clients.py recognizes only gpt-5, o1, o3 and o4 names (OPENAI_REASONING_MODEL_PREFIXES). GPT-6 deployments get max_tokens and a temperature, and the request is rejected. The same check exists on Development, main and the React v2 branch.

Impact

Workflows that use a GPT-6 model fail on their first model call. Prompt variables, content screening and orchestration share the same policy, so they send GPT-6 the same wrong parameters.

Notes

  • Fix: recognize gpt-6 like gpt-5, as a name prefix and as a family name inside deployment or display names. Add a regression test for the GPT-6 names and the workflow budget's parameter choice.
  • Already fixed on the React v2 branch in 0.261.219 (test_gpt6_reasoning_model_parameters.py, docs/explanation/fixes/GPT6_REASONING_MODEL_PARAMETERS_FIX.md). Needs porting to Development.
主要言語
Python
スター
157
フォーク
117
平均マージ
4時間 3分
マージ済み PR(30日)
217

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/simplechat のほかの issue

microsoft/simplechat の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。