Skip to content

fix(playground): prioritize campaign models in selectors - #992

Merged
ppapsmoken merged 2 commits into
mainfrom
codex/playground-model-selector-production
Aug 31, 2026
Merged

fix(playground): prioritize campaign models in selectors#992
ppapsmoken merged 2 commits into
mainfrom
codex/playground-model-selector-production

Conversation

@ppapsmoken

Copy link
Copy Markdown
Collaborator

问题背景:Playground 模型选择器的默认顺序没有遵循模型列表的促销排序,搜索结果也没有把最新、免费、折扣和最热模型置于前列。

证据:默认列表直接使用后端返回顺序;此前统一排序比较器按发布时间/价格排序,促销标签的优先级未按产品要求区分默认和搜索场景。

根因:默认列表和搜索结果复用了不匹配的排序规则。

改动范围:默认列表按免费、有限折扣、最热、其他排序;搜索结果按最新、免费、有限折扣、最热、其他排序,并在同一层级内按发布时间、价格、featured 顺序稳定排序。

影响与风险:仅影响 web/default Playground 模型选择器 UI,不改变模型调用、路由、计费或后端请求。

验证:模型选择器单测 3 项通过;bun run typecheck、相关 ESLint 和 bun run build 均通过。

发布建议:Router deploy: not required。Other deploy target: newapi-console/staging and production console frontend only; website/router/Terraform/Cloudflare not involved。

@ppapsmoken
ppapsmoken merged commit 1679df7 into main Aug 31, 2026
1 check passed
@ppapsmoken
ppapsmoken deleted the codex/playground-model-selector-production branch August 31, 2026 07:01
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