Repository navigation
feat: 模型列表只列这个账号当前能调的(0.2.37) - #2
Merged
Merged
Conversation
用户反馈:「basic 额度 pro 额度 ultra 额度还有积分计费,怎么这么多,直接捕获 账号当前可用的模型就行了」。 - 登录成功那一刻就 await warmCatalog() 把平台目录落盘:magpie 紧接着会调 provider.models,而那里只读缓存;缓存空着就只能退回内置快照(一张跟账号无关 的通用表)。国际站实测:全站 45 条,这个账号只回 4 条 - 内置快照 9 条 -> 4 条,去掉 monkeycode-basic/pro/ultra 三档重复项,只留无前缀 (按积分计费)的兜底 - 默认不再用 max_tokens:1 探测筛模型(会误杀慢的/被限流的,且白烧额度); probe 保留成显式开关 - configModels 不再按 usable 二次过滤,平台目录原样列出 - 测试:内置快照不许出现档位前缀
Merged
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.
用户反馈:「basic 额度 pro 额度 ultra 额度还有积分计费,怎么这么多,直接捕获账号当前可用的模型就行了」。
改了什么
await warmCatalog())。magpie 紧接着会调provider.models,而那里只读缓存;缓存空着就只能退回内置快照 —— 也就是那张跟账号无关的通用表monkeycode-basic/pro/ultra三档重复项,只留无前缀(按积分计费)的兜底max_tokens: 1探测筛模型:平台清单本身就是「这个账号能调什么」,再探一遍会误杀慢的 / 被限流的模型,而且每刷一次目录就打 N 个真请求白烧额度。probe保留成显式开关configModels不再按usable二次过滤实测(国际站,已登录账号)
平台只回这个账号的 4 条(全站 45 条),改完就只列这 4 条。
验证