Repository navigation
fix(chat): replace retired gpt-3.5-turbo default model in create_chat_completion - #1299
Open
pcbeingused33 wants to merge 1 commit into
Open
pcbeingused33 wants to merge 1 commit into
pcbeingused33 wants to merge 1 commit into
Conversation
…_completion OpenAI shut gpt-3.5-turbo down on 2026-10-23 (replacement: gpt-5.6-terra); the default is forwarded to the workspace's LLM provider, so calls omitting model failed.
Contributor
Author
|
Friendly ping in case this slipped through — happy to adjust anything (scope, tests, style) if that makes review easier. Thanks for maintaining this! |
Author
|
Friendly ping: could someone take a look at this when there's time? Happy to adjust or rebase anything. Thanks! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MeilisearchClient.create_chat_completiondefaultsmodel="gpt-3.5-turbo", which is sent to the workspace's LLM provider when the caller omitsmodel. OpenAI retiredgpt-3.5-turboon 2026-10-23 and listsgpt-5.6-terraas its replacement (https://developers.openai.com/api/docs/deprecations), so a call that relies on the default now fails against OpenAI-backed workspaces.This changes the default to
gpt-5.6-terraand updates the one test asserting the default request body. The model remains overridable per call and should correspond to the LLM configured in the workspace settings, as the docstring already says. If you would rather not hard-code a vendor model at all (for example makemodelrequired), happy to change it that way.Test:
tests/client/test_chat_completions.py::test_create_chat_completion_basic_stream(fails against main withgpt-3.5-turbo; the 6 tests of the file pass with the change, run against a local Meilisearch container).AI usage (per CONTRIBUTING): this PR was prepared with AI assistance (Claude).
Summary by CodeRabbit
gpt-5.6-terraby default.