Support max_completion_tokens (alias or replacement for max_tokens) in Agents API
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by locating the Agents API sampling_params schema and the code that builds tool-calling or agent-invocation requests. Check how max_tokens is currently serialized, then add support for max_completion_tokens while preserving the stated backward-compatibility behavior. Done means supported OpenAI/Azure-style models no longer receive an unsupported max_tokens parameter, with tests covering the request payload.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I’m building agents using the Agent API of the Python SDK and am using OpenAI's models (GPT-5-mini) where the provider rejects the max_tokens parameter and requires max_completion_tokens.
The current sampling_params schema for the Agents API only supports max_tokens, so when I attempt a tool-calling turn or agent invocation I get errors like:
400 BadRequestError: Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.
To ensure the SDK works with newer provider models (OpenAI/Azure etc), would it be possible to add support for max_completion_tokens in sampling_params for the Agents API, or optionally, alias max_tokens with max_completion_tokens for backward compatibility (although there could be issues with this).
Happy to assist with a pull request if helpful.
- Ngôn ngữ chính
- Python
- Star
- 198
- Fork
- 102
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ogx-ai/ogx-client-python
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 15/100
ogx-ai/ogx-client-python#348 · 1 bình luận ·
-
Mad APIĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
ogx-ai/ogx-client-python#347 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
ogx-ai/ogx-client-python#307 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ogx-ai/ogx-client-python#279 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ogx-ai/ogx-client-python#272 ·
Tất cả issue của ogx-ai/ogx-client-python
Issue tương tự
-
URLValidator ignores an explicit empty scheme allowlistCó thể đã có người làm @IlyaKhalafi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
tortoise/tortoise-orm#2393 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
frappe/frappe_docker#2046 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Weekly link check failedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
AXI SMU SPEC
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
tenstorrent/tt-oca-harness#3556 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
microsoft/agent-framework#9946 ·
Maintainer thường phản hồi trong vòng 1 ngày