OpenAI shuts down gpt-3.5-turbo and gpt-4o-2024-05-13 on 2026-10-23: default model_type values need updating

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

@qiyuhuating がすでに取り組んでいます。

2026年10月12日 から。

  • #380 @qiyuhuating による — オープン

評価

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

調査の方向性

ハードコードされた ID は lagent/llms/openai.py(59 行目と 450 行目)、lagent/agents/react.py(135 行目と 153 行目)、examples/run_async_agent_openai.py(29 行目)にあります。編集する前に、それらの呼び出し箇所を読み、同じモデル文字列の他の出現箇所を grep でリポジトリ全体から探し、現在のデフォルトをアサートしているテストやドキュメントがないか確認してください。完了とは、すべてのデフォルトとサンプルが引き続きサポートされているモデルを指し、既存のテストとサンプルが引き続き実行されることです。コストとサポートされるパラメータが異なるため、置き換えの選択肢は先にメンテナーに確認してください。

索引モデルが issue の本文から書いたものです。

説明

Hi! Heads-up: OpenAI's deprecations page lists some model IDs used here for shutdown. After the shutdown date, requests with these IDs fail.

Hard-coded model IDs found on the default branch:

  • lagent/llms/openai.py:59: model_type: str = 'gpt-3.5-turbo'
  • lagent/llms/openai.py:450: model_type: str = 'gpt-3.5-turbo'
  • lagent/agents/react.py:135, 153: model_type='gpt-4o-2024-05-13'
  • examples/run_async_agent_openai.py:29: model='gpt-4o-2024-05-13'

Per OpenAI: gpt-3.5-turbo and gpt-4o-2024-05-13 shut down on 2026-10-23; the listed replacements are gpt-5.6-terra (for gpt-3.5-turbo) and gpt-5.6-sol (for gpt-4o-2024-05-13).

Swapping models can change output quality, cost and supported parameters, so I didn't open a ready-made patch; the replacement is a judgement call for you. If these are only defaults that users always override, it's still worth updating them so new users don't hit errors.

I found this with a small scanner I'm building that checks public repos against upcoming platform deadlines (https://otisz.hu/api-sunset/). No sales pitch: if you'd prefer a PR instead of an issue, say so and I'll open one.

Ottó Misák

主要言語
Python
スター
2.3k
フォーク
249
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

InternLM/lagent のほかの issue

InternLM/lagent の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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