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

Anthropic-format requests lose max_tokens when sent to openai_chat/openai_responses providers

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

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, backend

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

GoDiao/dreamcoder のほかの issue

GoDiao/dreamcoder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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