Anthropic-format requests lose max_tokens when sent to openai_chat/openai_responses providers
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by reading anthropicToOpenaiChat and anthropicToOpenaiResponses under src/server/proxy/transform/, then check how each provider handles output token limits and find the desktop integration tutorial’s note about max_tokens. Decide how the mappings should handle provider caps and the o-series requirement, then add tests for both transforms. Done when the chosen behavior avoids unexpected truncation and the tests cover both request formats.
索引モデルが issue の本文から書いたものです。
説明
anthropicToOpenaiChat and anthropicToOpenaiResponses (src/server/proxy/transform/) never copy the Anthropic request's max_tokens, and the desktop integration tutorial lists that as a known behavior ("Requests do not carry max_tokens, so the provider uses its own default"). The catch is that providers' own defaults are often much lower than what the client asks for, so long answers and large tool-call arguments get cut off with finish_reason: length and nothing says why. Before writing a PR I'd like to know which mapping you'd accept: max_tokens (Chat Completions) / max_output_tokens (Responses) passed through as is, or only when the provider has a configured cap, since some providers reject values above their limit and the o-series want max_completion_tokens instead. I can send a PR for whichever you prefer, with tests for both transforms.
Prepared with the assistance of an AI coding agent (Claude).
- 主要言語
- TypeScript
- スター
- 490
- フォーク
- 47
- 平均マージ
- 10時間 53分
- マージ済み PR(30日)
- 81
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoDiao/dreamcoder のほかの issue
-
[good first issue] UX polish — friendlier copy for error toasts and empty states対応中かも @iamcipherdev が 14 日前に担当しました。 オープンarea:i18n area:ux difficulty:1 good first issue mentor-available
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GoDiao/dreamcoder#9 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Add more provider presets (Groq / OpenRouter / SiliconFlow / etc.)再び着手できるかも @01iamysf が 21 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンarea:desktop area:provider difficulty:1 good first issue mentor-available
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GoDiao/dreamcoder#6 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
GoDiao/dreamcoder#209 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GoDiao/dreamcoder#208 ·
メンテナーはふだん 1 日以内に返信
-
Stopping or restarting a lead session deletes its team and task directories対応中かも @pcbeingused333 が今日担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
GoDiao/dreamcoder#199 ·
メンテナーはふだん 1 日以内に返信
GoDiao/dreamcoder の issue をすべて見る
似ている issue
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
anthropics/claude-code#106183 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
feature:App-Tour feature:Chat ready Web
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
digitalfabrik/integreat-app#4523 · リアクション 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Required Lexical field accepts two empty paragraphs対応中かも @lazerg が今日担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19222 ·
メンテナーはふだん 1 日以内に返信