feat: 扩展 fallback 价格表,覆盖 6 大厂商 32 个模型#4
Open
MeCKodo wants to merge 1 commit into
Open
Conversation
548f93e to
f00c6a6
Compare
原有 fallback 仅含 4 个 Claude 模型,LiteLLM 拉取失败时 (macOS SSL 证书问题等),所有非 Anthropic 模型费用显示 $0。 新增模型覆盖: - OpenAI GPT-5 系列(7 个) - DeepSeek(4 个) - Kimi/Moonshot(5 个) - 智谱 GLM(5 个) - 阿里 Qwen(4 个) - 小米 MiMo(3 个,含 256K 和 1M 上下文两档定价) 同时为 LiteLLM 拉取增加 SSL 证书降级。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
f00c6a6 to
c302bac
Compare
Contributor
Author
|
@stormzhang 希望可以合入这个兜底价格计算,否则国产模型都没统计到诶 |
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.

问题
原有 fallback 价格表仅含 4 个 Claude 模型。当 LiteLLM 价格表拉取失败时(macOS Python SSL 证书问题等),所有非 Anthropic 模型的等效费用显示为 $0。
解决方案
新增 28 个模型,覆盖 6 大厂商,总计 32 个模型:
价格来源
附加修复
为 LiteLLM 价格表拉取增加 SSL 证书降级,兼容 macOS Python。
改动
src/analyzer/cost.py: 扩展_fallback_pricing(),增加 SSL 降级🤖 Generated with Claude Code