Support max_completion_tokens (alias or replacement for max_tokens) in Agents API
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 198
- フォーク
- 102
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ogx-ai/ogx-client-python のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
ogx-ai/ogx-client-python#348 · コメント 1 件 ·
-
Mad APIオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
ogx-ai/ogx-client-python#347 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ogx-ai/ogx-client-python#307 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ogx-ai/ogx-client-python#279 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ogx-ai/ogx-client-python#272 ·
ogx-ai/ogx-client-python の issue をすべて見る
似ている issue
-
Maven path-index: "Ambiguous or noncanonical artifact path" error does not report the offending pathオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pulp/pulp_maven#524 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
infinispan/langchain-infinispan#34 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#3891 ·