Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,605 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@paullizer đang làm issue này rồi.

Từ ngày 2/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
Ngôn ngữ chính
Python
Star
157
Fork
117
Merge trung bình
3 giờ 31 phút
Pull request đã merge (30 ngày)
226

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/simplechat

Tất cả issue của microsoft/simplechat

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.