Repository navigation
feat(models): add OpenAI provider preset - #3594
Merged
Merged
Conversation
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.
Summary
Add OpenAI to the shared provider presets so users can select it in model settings instead of entering the connection manually. The preset uses the official Responses endpoint by default, offers Chat Completions as an alternative, and includes the API-key link and bundled model-catalog binding. Add English, Simplified Chinese, and Traditional Chinese labels and update the provider-count assertions.
Type and Areas
Type: Feature
Areas: Shared AI provider catalog, model settings localization, core catalog tests.
Motivation / Impact
OpenAI was missing from the preset picker. It is now searchable and available in the expanded list, with connection parameters filled on selection. Existing language-based provider ordering is preserved.
Verification
pnpm --dir src/web-ui run test:run src/infrastructure/config/services/providerPresets.test.ts src/infrastructure/config/services/modelConfigs.test.ts src/app/scenes/settings/pages/ai/ModelSettingsPage.presentation.test.ts(23 tests).pnpm run i18n:audit,pnpm run models-dev:check,pnpm run fmt:rs --check, andgit diff --check.cargo test --locked -p openbitfun-core --no-default-features --features model-catalog --lib infrastructure::ai::provider_catalog::tests(7 tests).cargo test --locked -p openbitfun-core --no-default-features --features model-catalog --lib infrastructure::ai::reasoning_catalog::tests(14 tests).Reviewer Notes
AI-assisted; tested locally with focused frontend, backend, and data-contract checks. Reviewed endpoint switching, model discovery URL construction, trusted catalog binding, legacy configuration naming, locale coverage, and fallback when an older host omits the new preset. No persisted schema, transport, or runtime ownership changes. The UI layout is unchanged; this adds an entry through the existing catalog projection. Endpoint reference: https://developers.openai.com/api/docs/guides/migrate-to-responses
Checklist