mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 05:32:00 +08:00
优化模型数据处理逻辑,移除对特殊标记模型的跳过检查
- 在 UpdateOtherPrices 函数中移除对包含":free"和":extended"标记模型的跳过逻辑 - 增强黑名单检查机制,确保模型名称的准确性和完整性 - 简化代码逻辑,提高可读性
This commit is contained in:
parent
ca3d4a73ee
commit
9c4684b0e2
@ -33,6 +33,7 @@ var blacklist = []string{
|
||||
"claude-3-haiku",
|
||||
"claude-3-opus",
|
||||
"claude-3-sonnet",
|
||||
":",
|
||||
}
|
||||
|
||||
const (
|
||||
@ -76,13 +77,6 @@ func UpdateOtherPrices() error {
|
||||
author := parts[0]
|
||||
modelName := parts[1]
|
||||
|
||||
// 直接跳过包含":free"或":extended"的模型
|
||||
if strings.Contains(modelName, ":free") || strings.Contains(modelName, ":extended") {
|
||||
log.Printf("跳过带特殊标记的模型: %s", modelData.Slug)
|
||||
skippedCount++
|
||||
continue
|
||||
}
|
||||
|
||||
// 检查是否在黑名单中
|
||||
if isInBlacklist(modelName) {
|
||||
log.Printf("跳过黑名单模型: %s", modelName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user