fix: account for native search request pricing (#65)

This commit is contained in:
2026-07-24 12:28:07 +08:00
committed by GitHub
parent 96842d2080
commit 2ddf3045d6
4 changed files with 19 additions and 2 deletions

View File

@@ -39,6 +39,7 @@
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 1,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
@@ -76,6 +77,7 @@
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 2,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
@@ -116,6 +118,7 @@
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 3,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
@@ -155,6 +158,7 @@
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 4,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {
@@ -191,6 +195,7 @@
"enabled": true,
"dialect": "anthropic-messages",
"fallbackPriority": 5,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search_20260318"
},
"cachePricing": {

View File

@@ -50,6 +50,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 1,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
},
"cachedInputPrice": 0.5,
@@ -89,6 +90,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 2,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
},
"responsesOnly": true,
@@ -126,6 +128,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 3,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
},
"cachedInputPrice": 0.25,
@@ -162,6 +165,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 4,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
},
"responsesOnly": true,
@@ -200,6 +204,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 5,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
},
"cachedInputPrice": 0.075,
@@ -235,6 +240,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 6,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
},
"cachedInputPrice": 0.02,
@@ -436,6 +442,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 7,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
}
}
@@ -525,6 +532,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 8,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
}
}
@@ -554,6 +562,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 9,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
}
}
@@ -816,6 +825,7 @@
"enabled": true,
"dialect": "openai-responses",
"fallbackPriority": 10,
"searchRequestPriceUsd": 0.01,
"toolType": "web_search"
}
}