fix lint/format issues

This commit is contained in:
Feng Yue
2025-08-31 23:31:38 +08:00
parent e0c926c53d
commit c979be5aab
2 changed files with 4 additions and 2 deletions

View File

@@ -308,7 +308,9 @@ class PricingService {
// 确保价格对象包含缓存价格
ensureCachePricing(pricing) {
if (!pricing) return pricing
if (!pricing) {
return pricing
}
// 如果缺少缓存价格根据输入价格计算缓存创建价格通常是输入价格的1.25倍缓存读取是0.1倍)
if (!pricing.cache_creation_input_token_cost && pricing.input_cost_per_token) {

View File

@@ -31,7 +31,7 @@ const MODEL_PRICING = {
cacheWrite: 18.75,
cacheRead: 1.5
},
// Claude Opus 4.1 (新模型)
'claude-opus-4-1-20250805': {
input: 15.0,