mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
fix lint/format issues
This commit is contained in:
@@ -308,7 +308,9 @@ class PricingService {
|
|||||||
|
|
||||||
// 确保价格对象包含缓存价格
|
// 确保价格对象包含缓存价格
|
||||||
ensureCachePricing(pricing) {
|
ensureCachePricing(pricing) {
|
||||||
if (!pricing) return pricing
|
if (!pricing) {
|
||||||
|
return pricing
|
||||||
|
}
|
||||||
|
|
||||||
// 如果缺少缓存价格,根据输入价格计算(缓存创建价格通常是输入价格的1.25倍,缓存读取是0.1倍)
|
// 如果缺少缓存价格,根据输入价格计算(缓存创建价格通常是输入价格的1.25倍,缓存读取是0.1倍)
|
||||||
if (!pricing.cache_creation_input_token_cost && pricing.input_cost_per_token) {
|
if (!pricing.cache_creation_input_token_cost && pricing.input_cost_per_token) {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const MODEL_PRICING = {
|
|||||||
cacheWrite: 18.75,
|
cacheWrite: 18.75,
|
||||||
cacheRead: 1.5
|
cacheRead: 1.5
|
||||||
},
|
},
|
||||||
|
|
||||||
// Claude Opus 4.1 (新模型)
|
// Claude Opus 4.1 (新模型)
|
||||||
'claude-opus-4-1-20250805': {
|
'claude-opus-4-1-20250805': {
|
||||||
input: 15.0,
|
input: 15.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user