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

AI Answer stops working on 23 October: the gpt-3.5-turbo default shuts down, and its replacement rejects max_tokens

オープン 初心者向け
#402 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Lakshya-0910 がすでに取り組んでいます。

2026年10月6日 から。

  • #403 @Lakshya-0910 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
api, backend

調査の方向性

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; accepts max_tokens) in ai_answer.go:109 and util.go:30.
  • Support the replacement: send the limit as max_completion_tokens for gpt-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 ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

appbaseio/reactivesearch-api のほかの issue

appbaseio/reactivesearch-api の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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