Repository navigation
fix(sync): stop re-adding shut-down and unlisted provider routes - #1910
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
Conversation
> 🤖 **This text was AI-generated.** - Skip LiteLLM entries past their shutdown date (`deprecation_date`) so they no longer re-add `openai` to models OpenAI has shut down. A small map covers undated aliases whose snapshots are shut down. - Add `azure` for an OpenAI model only when LiteLLM lists a live `azure/...` deployment, instead of for every OpenAI model. - Use `output_cost_per_audio_token` for `audio_speech` models so the sync stops resetting `gpt-4o-mini-tts` output to the text rate. Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e0caf664c4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| } | ||
|
|
||
| const resolvedRemote = resolveRemoteModels(filteredRemoteModels); | ||
| const resolvedRemote = resolveRemoteModels(remoteModels, argv.provider); |
There was a problem hiding this comment.
Exclude shut-down entries from summary totals
When find-missing --summarize runs after a provider has shut down a model, resolveRemoteModels now excludes that entry, but filteredRemoteModels still includes it and supplies totalRemote for the summary. If every live model is present locally while the shut-down model is absent, the command consequently reports that all remote models are present and prints an inflated total. Build the summary totals from the same shutdown-filtered set used by resolveRemoteModels.
Useful? React with 👍 / 👎.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…turbo-instruct (#1911) ## Summary `gpt-3.5-turbo-instruct` still routed to providers that no longer serve it. | Provider | Status | Source | Change | |---|---|---|---| | `openai` | Shut down 2026-09-28 | [OpenAI deprecations](https://developers.openai.com/api/docs/deprecations) | removed | | `openrouter` | Not in `/api/v1/models`, 0 endpoints at `/models/openai/gpt-3.5-turbo-instruct/endpoints` | [OpenRouter models API](https://openrouter.ai/api/v1/models) | removed | | `azure` | `gpt-35-turbo-instruct` not on the [Azure retirement schedule](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirements); still the listed replacement on the [retired models page](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/legacy-models) | kept | ```diff - "gpt-3.5-turbo-instruct": ["openai", "azure", "openrouter"], + "gpt-3.5-turbo-instruct": ["azure"], ``` `retirement_date: 2026-09-28` is removed: by catalog convention it is the last shutdown across all `available_providers`, and Azure has no announced date. This matches `gpt-3.5-turbo-instruct-0914` (Azure-only, no `retirement_date`) from #1886. `deprecated: true` and `deprecation_date` (notice date 2025-09-26) are unchanged. The sync fix in #1910 already treats LiteLLM's `2026-09-28` shutdown date as past, so the sync will not re-add `openai`. Link to Devin session: https://braintrust.devinenterprise.com/sessions/6816bbfb54e1454d9a20a7ff97c00143 Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/6816bbfb54e1454d9a20a7ff97c00143?variant=devin Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary
The daily
Sync new modelsrun (#1909) kept re-introducing catalog data that the lifecycle audit had already corrected. This PR fixes three causes insync_models.ts:gpt-4o-2024-05-13, GPT-3.5 legacy), so the--provider openaimerge addedopenaiback.resolveRemoteModelsnow skips entries whose LiteLLMdeprecation_date(a shutdown date) is on or before today.LITELLM_MISSING_SHUTDOWN_DATEScovers 3 undated aliases (gpt-4o-search-preview,gpt-4o-mini-search-preview,gpt-3.5-turbo-instruct-0914) whose snapshots are on OpenAI's deprecations page.getProviderMappingForModelmapsopenaito["openai", "azure"], which is how the four*-healthcaremodels gotazure.resolveRemoteModelsnow keepsazureonly when LiteLLM lists a liveazure/<model>orazure/<region>/<model>entry.mode: "audio_speech", LiteLLM'soutput_cost_per_tokenis a text rate. The sync now prefersoutput_cost_per_audio_token, sogpt-4o-mini-ttsstays at OpenAI's $12/M instead of being reset to $10/M.resolveRemoteModelstakes an injectabletodayfor tests. Thefind-missingpath now callsresolveRemoteModels(remoteModels, argv.provider)instead of pre-filtering; that filter is the same and gives the Azure lookup the full list.Verification: I ran
update-modelsandadd-models --provider openai --writeonmainwith this change. The only diffs were the legitimate healthcare pricing and limits andchat-latestmax_input_tokensthat #1909 also adds. There were noopenaiorazureroute additions and no TTS price change.Link to Devin session: https://braintrust.devinenterprise.com/sessions/6816bbfb54e1454d9a20a7ff97c00143
Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/6816bbfb54e1454d9a20a7ff97c00143?variant=devin