Skip to content

feat: 支持后台配置 OpenAI Responses API 路由#2450

Open
wucm667 wants to merge 1 commit into
Wei-Shaw:mainfrom
wucm667:codex/issue-2431-responses-api-support
Open

feat: 支持后台配置 OpenAI Responses API 路由#2450
wucm667 wants to merge 1 commit into
Wei-Shaw:mainfrom
wucm667:codex/issue-2431-responses-api-support

Conversation

@wucm667
Copy link
Copy Markdown
Contributor

@wucm667 wucm667 commented May 14, 2026

变更

  • 新增 OpenAI APIKey 账号级 openai_responses_mode,支持自动、强制 Responses、强制 Chat Completions 三种模式。
  • 后台账号编辑弹窗增加 Responses API 支持状态选择,并在自动模式下保留已有 openai_responses_supported 探测结果。
  • 调度缓存保留 Responses 支持相关 extra 字段,确保缓存命中时也能按管理员配置分流。
  • 补充后端能力判断、调度缓存和前端编辑弹窗测试。

测试

  • go test -tags=unit ./internal/pkg/openai_compat ./internal/repository
  • pnpm exec vitest run src/components/account/__tests__/EditAccountModal.spec.ts
  • pnpm run typecheck
  • pnpm run lint:check
  • pnpm run build

Fixes #2431

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.

[Feature] OpenAI APIKey 账号应支持在管理后台设置 Responses API 支持状态

1 participant