update openai pricing

This commit is contained in:
pluja 2024-10-21 23:16:34 +02:00
parent 0d4e23e477
commit 03b95c5240
No known key found for this signature in database

View File

@ -7,6 +7,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/sashabaranov/go-openai"
"pluja.dev/kycnot.me/database"
)
@ -15,8 +16,8 @@ func GetTosReviews(text string) ([]database.TosReview, error) {
return nil, errors.New("empty text")
}
promptPrice := 0.005
completionPrice := 0.015
promptPrice := 0.0025
completionPrice := 0.01
model := openai.GPT4o
// Call the OpenAI API