feat: claude web search tool 计费

This commit is contained in:
creamlike1024
2025-07-15 18:57:22 +08:00
parent 77da33de4f
commit 961bc874d2
4 changed files with 38 additions and 4 deletions

View File

@@ -23,6 +23,15 @@ const (
Gemini20FlashInputAudioPrice = 0.70
)
const (
// Claude Web search
ClaudeWebSearchPrice = 10.00
)
func GetClaudeWebSearchPricePerThousand() float64 {
return ClaudeWebSearchPrice
}
func GetWebSearchPricePerThousand(modelName string, contextSize string) float64 {
// 确定模型类型
// https://platform.openai.com/docs/pricing Web search 价格按模型类型和 search context size 收费