[Bug]: Assistants title generation hardcodes gpt-3.5-turbo, which OpenAI shut down on 23 Oct 2026

Open Beginner friendly
#19,201 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@tang-ontheway is already working on this.

Since Dec 1, 2026.

  • #19216 by @tang-ontheway — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
ai, backend

Research direction

Start with api/server/services/Endpoints/assistants/title.js at the linked model selection, then check how other endpoints read titleModel from endpoint config. Choose a supported title model or use the configured value, and run the relevant assistants title tests if present. Done means title generation no longer requests the retired model and still falls back safely when generation fails.

Written by the indexing model from the issue text.

Description

🐛 bug

Title generation for the assistants endpoint sends a fixed model name:

https://github.com/LibreChat-AI/LibreChat/blob/4700c44eb77c142b4f9f8b87476924f22890eb39/api/server/services/Endpoints/assistants/title.js#L30-L31

OpenAI's deprecations page lists gpt-3.5-turbo and gpt-3.5-turbo-0125 with a shutdown date of 23 October 2026: https://platform.openai.com/docs/deprecations

Effect, from reading the code (I have not reproduced it on a running instance): the request should now fail, addTitle catches the error, logs [addTitle] Error generating title, and falls back to the first 40 characters of the user's message. So nothing crashes, but assistants conversations no longer get generated titles and every new one logs an error.

Suggested fix: use a current small model here, or read the title model from the endpoint config the way the other endpoints do with titleModel. The deprecations page lists gpt-5.6-terra as the replacement.

I can open a PR if that is useful.

How I found this: I ran a static scanner I maintain over a set of popular open-source AI projects and checked each result by hand. This is the only finding for LibreChat.

Dominant language
TypeScript
Stars
45.6k
Forks
9.4k
Avg merge
16h 24m
Merged PRs (30d)
825

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LibreChat-AI/LibreChat

All issues in LibreChat-AI/LibreChat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.