新增 deepseek-v4-flash-vision-exp 用量监控 + 窗口可缩放/响应式布局 - #11
Open
Tsuki-hash wants to merge 3 commits into
Open
Conversation
- Backend (lib.rs): whitelist the new model in fetch_usage; extend UsageDaySummary with 4 vision fields and add the day-aggregation branch. - Frontend (main.tsx + styles.css): add flashvision model type, render the V4 Flash Vision row between Flash and Pro, merge it into the cache-hit trend chart and the model detail panel; add rose-red theme tokens. - Bump version to 1.2.0 in package.json and tauri.conf.json. - Update zh/en README changelog and download filename.
- tauri.conf.json: 窗口改 resizable,默认 384x660,最小 340x540 - styles.css: 面板填满窗口;固定区块 flex:0 0 auto、图表区 flex:1 1 auto 吸收剩余高度;字号/间距/最小高度改用 clamp(vw/vh) 随窗口缩放 - 移除所有滚动效果(平滑/惯性/自动/动画),dashboard 不再滚动,settings 滚动即时无过渡、无自定义滚动条;全局 scroll-behavior:auto Co-Authored-By: WorkBuddy <noreply@workbuddy.ai>
src-tauri/Cargo.toml 缺少整个 [features] 段,custom-protocol 未启用, 导致 tauri::is_dev() 恒为 true(其定义为 !cfg!(feature = "custom-protocol")), release exe 也会走开发分支去连 devUrl=http://127.0.0.1:5180, 页面报 ERR_CONNECTION_REFUSED / 127.0.0.1 拒绝连接。 - 补 [features] custom-protocol = ["tauri/custom-protocol"](勿删) - 构建须显式带该 feature:cargo build --release --features custom-protocol - 版本 1.1.0 -> 1.2.0,与 package.json / tauri.conf.json 对齐 Co-Authored-By: WorkBuddy <noreply@workbuddy.ai>
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.
1. 新增模型监控 / New model monitoring
fetch_usage模型白名单新增deepseek-v4-flash-vision-exp(内部 keyflashvision);UsageDaySummary增加 vision 的tokens / cache_hit / cache_miss / response四字段;日聚合循环同步新增对应分支。UsageChart合并其 hit/miss/response,ModelDetailPanel增加对应分支。fetch_usageallowlist addsdeepseek-v4-flash-vision-exp(keyflashvision);UsageDaySummarygains four vision fields; daily aggregation adds the matching branch. The dashboard inserts a "V4 Flash Vision" row between Flash and Pro, withUsageChart/ModelDetailPanelupdated accordingly.