Codex/issue 2 investigation#6
Open
ZHOUKAILIAN wants to merge 2 commits into
Open
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.
变更说明
修复 issue #2 中“没有模型显示”的问题。
本次改动的目标,是让“没有额度”和“没有模型”这两种情况不再混淆,并避免模型列表在常见场景下直接显示为空。
具体修改
后端
调整
/v1/models的返回逻辑:percentage == 0就把它过滤掉前端
调整 Dashboard 的 Integration 页面中的“模型列表”展示逻辑:
解决的问题
之前出现空模型列表,主要有两类情况:
percentage为0这两种情况都会让界面表现成“没有模型”,从而造成误解。
本次修改后:
影响范围
apps/cli-server/src/handlers/probes.rsapps/web-dashboard/src/pages/Integration.jsx验证方式
已完成以下验证:
cargo check -p cli-servernpm run buildGET /v1/models,可返回以下模型列表:claude-opus-4-6-thinkingclaude-sonnet-4-6gemini-3-flash-agentgemini-3.1-pro-highgemini-3.1-pro-lowgpt-oss-120b-medium