This commit is contained in:
c菌
2023-11-23 18:30:24 +08:00
parent c838e7be16
commit 68eb6f5ce1
2 changed files with 9 additions and 9 deletions

View File

@@ -116,13 +116,13 @@ func Cost(model string, promptCount, completionCount int) float64 {
cost = float64(0.04 * completion)
case "dall-e-3.1024x1792", "dall-e-3.1792x1024":
cost = float64(0.08 * completion)
case "dall-e-3.256x256.HD":
case "dall-e-3.256x256.hd":
cost = float64(0.08 * completion)
case "dall-e-3.512x512.HD":
case "dall-e-3.512x512.hd":
cost = float64(0.08 * completion)
case "dall-e-3.1024x1024.HD":
case "dall-e-3.1024x1024.hd":
cost = float64(0.08 * completion)
case "dall-e-3.1024x1792.HD", "dall-e-3.1792x1024.HD":
case "dall-e-3.1024x1792.hd", "dall-e-3.1792x1024.hd":
cost = float64(0.12 * completion)
// claude /million tokens