AI Answer stops working on 23 October: the gpt-3.5-turbo default shuts down, and its replacement rejects max_tokens
評価
調査の方向性
plugins/openai/util.go の BuildChatGPTBody から始め、plugins/pipelines/ai_answer.go のデフォルト値を確認してください。リクエストボディのカバレッジについて OpenAI プラグインのテストを確認してください。選択した修正が影響を受けるモデルのデフォルト値で機能するか、トークン上限を gpt-5* モデルが受け付けるパラメーターで送信できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When no model is set, the AI Answer pipeline stage and the OpenAI plugin default to gpt-3.5-turbo with 300 max tokens (plugins/pipelines/ai_answer.go:109-122, plugins/openai/util.go:30-32). OpenAI shuts down gpt-3.5-turbo on 23 October 2026 and names gpt-5.6-terra. BuildChatGPTBody always sends the limit as max_tokens (plugins/openai/util.go:1267), and terra replies:
Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.
The same applies to anyone who sets a gpt-5* model in their config today, since max_tokens is always sent.
Fix — either one (both tested live with your default prompt):
- One line each: default to
gpt-4.1-mini(not retiring; acceptsmax_tokens) inai_answer.go:109andutil.go:30. - Support the replacement: send the limit as
max_completion_tokensforgpt-5*models. With 300, terra answered normally.
// If maxTokens is passed, inject it in the request body
if maxTokens != nil {
- requestBodyAsMap["max_tokens"] = *maxTokens
+ if strings.HasPrefix(model, "gpt-5") {
+ requestBodyAsMap["max_completion_tokens"] = *maxTokens
+ } else {
+ requestBodyAsMap["max_tokens"] = *maxTokens
+ }
}
- 主要言語
- Go
- スター
- 212
- フォーク
- 30
- 平均マージ
- 13分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
appbaseio/reactivesearch-api のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
appbaseio/reactivesearch-api#382 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
appbaseio/reactivesearch-api#377 ·
-
Internal Server Error when posting a permission while being authenticated with another permission再び着手できるかも @deepjyoti30 が 1352 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
appbaseio/reactivesearch-api#367 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
appbaseio/reactivesearch-api#151 · コメント 4 件 ·
-
Add test cases for the users plugin再び着手できるかも @harsh-2711 が 2585 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
appbaseio/reactivesearch-api#19 · コメント 1 件 · 担当者 1 名 ·
appbaseio/reactivesearch-api の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
shukiv/jabali-panel#2029 ·
メンテナーはふだん 1 日以内に返信
-
[submenu] nil issue on ubuntu 26.04対応中かも @egoist が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
prime-radiant-inc/evener#3873 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
v2fly/domain-list-community#4127 ·
メンテナーはふだん 2 日以内に返信
-
extract_llm_sweep / cache_aware_summarizer prefix ask 400s when thinking.budget_tokens exceeds PrefixAskMaxTokens対応中かも @amiddavid が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
rossoctl/context-guru#405 ·
メンテナーはふだん 1 日以内に返信