Merge pull request #1384 from QuantumNous/RequestOpenAI2ClaudeMessage

feat: 改进 RequestOpenAI2ClaudeMessage 和添加 claude web search 计费
This commit is contained in:
Calcium-Ion
2025-07-17 19:15:54 +08:00
committed by GitHub
4 changed files with 249 additions and 6 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 收费