Skip to content

feat(models): add OpenAI provider preset - #3594

Merged
bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/add-openai-provider-preset
Oct 29, 2026
Merged

bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/add-openai-provider-preset

Conversation

@bobleer

@bobleer bobleer commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Passed: 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).
  • Passed: pnpm run i18n:audit, pnpm run models-dev:check, pnpm run fmt:rs --check, and git diff --check.
  • Passed: cargo test --locked -p openbitfun-core --no-default-features --features model-catalog --lib infrastructure::ai::provider_catalog::tests (7 tests).
  • Passed: cargo test --locked -p openbitfun-core --no-default-features --features model-catalog --lib infrastructure::ai::reasoning_catalog::tests (14 tests).
  • Passed: PR CI and Repository Object Sizes. All applicable checks succeeded; DSH packaging and the impact-selected Linux/Relay packaging job were skipped by the existing path rules.
  • No live provider requests or live Remote Workspace, Remote Control, Peer Device, or Detached Dispatch acceptance runs.

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

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@bobleer
bobleer merged commit ff24f78 into openBitFun:main Oct 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant