Skip to content

fix: 混合渠道警告确认框和过滤 prompt_cache_retention 参数#322

Merged
Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom
xlx0852:main
Feb 3, 2026
Merged

fix: 混合渠道警告确认框和过滤 prompt_cache_retention 参数#322
Wei-Shaw merged 2 commits intoWei-Shaw:mainfrom
xlx0852:main

Conversation

@xlx0852
Copy link
Copy Markdown

@xlx0852 xlx0852 commented Jan 17, 2026

改动内容

后端

  • 过滤 OpenAI 请求中的 prompt_cache_retention 参数(上游不支持,修复 400 错误)

前端

  • EditAccountModalCreateAccountModal 添加 409 mixed_channel_warning 处理
  • 使用 ConfirmDialog 组件替代原生 confirm() 对话框,与项目 UI 风格一致
  • 添加中英文翻译 mixedChannelWarningmixedChannelWarningTitle

测试

  • 前端构建成功
  • 后端测试通过

nick8802754751 and others added 2 commits January 17, 2026 16:06
- 前端: EditAccountModal 和 CreateAccountModal 添加 409 mixed_channel_warning 处理
- 前端: 弹出确认框让用户确认混合渠道风险
- 后端: 过滤 OpenAI 请求中的 prompt_cache_retention 参数(上游不支持)
- 添加中英文翻译

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- EditAccountModal 和 CreateAccountModal 使用 ConfirmDialog 组件
- 保存 pending payload 供确认后重试
- 添加 mixedChannelWarningTitle 翻译

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@Wei-Shaw Wei-Shaw force-pushed the main branch 3 times, most recently from 86fd7d1 to 1245f07 Compare January 26, 2026 01:19
@Wei-Shaw Wei-Shaw force-pushed the main branch 2 times, most recently from 624b6bc to bbdc866 Compare February 2, 2026 07:15
@Wei-Shaw Wei-Shaw merged commit bb3df57 into Wei-Shaw:main Feb 3, 2026
4 checks passed
xuebkgithub pushed a commit to xuebkgithub/sub2api that referenced this pull request Mar 3, 2026
fix: 混合渠道警告确认框和过滤 prompt_cache_retention 参数
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.

2 participants