-
Notifications
You must be signed in to change notification settings - Fork 127
fix(providers): replace retired/stale model runtime defaults #1823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -74,7 +74,8 @@ const resolveOpenAIBaseURL = ( | |||||||||||
|
|
||||||||||||
| const getOpenAIApiKey = (): string => validateApiKey(createOpenAIConfig()); | ||||||||||||
|
|
||||||||||||
| const getOpenAIModel = (): string => getProviderModel("OPENAI_MODEL", "gpt-4o"); | ||||||||||||
| const getOpenAIModel = (): string => | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MAJOR — OpenAI runtime default diverges from the public default surface. You moved the provider runtime default here to
So |
||||||||||||
| getProviderModel("OPENAI_MODEL", "gpt-5.4"); | ||||||||||||
|
|
||||||||||||
| const streamTracer = trace.getTracer("neurolink.provider.openai"); | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAJOR —
getFallbackModels()still advertises staleopenai/gpt-4oas its first fallback.This PR's whole purpose is retiring the stale OpenAI defaults:
FALLBACK_LITELLM_MODELmoved toopenai/gpt-5.4-mini, and the health-check "try this instead" probe moved offgpt-4o-mini. But the first entry of this fallback list — the model handed to any caller whose/v1/modelsfetch fails and falls back to the static suggestion list — is still"openai/gpt-4o"(line 335, left unchanged two lines above the edited line). A caller who exhausts the model-not-found path is handed the exact stale/retired default this PR claims to remove, contradicting the other edits in the same function.The new test also misses this (see the test-file finding). Suggest aligning the head of the list with
FALLBACK_LITELLM_MODEL: