feat: claude web search tool 计费

This commit is contained in:
creamlike1024 committed 2025-07-15 18:57:22 +08:00
1 parent aeca676d55
commit e351642db9
4 files changed
+38 -4

No files matched your search

+9
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 收费