mirror of
https://codeberg.org/pluja/kycnot.me
synced 2024-12-28 08:29:27 -05:00
update openai pricing
This commit is contained in:
parent
0d4e23e477
commit
03b95c5240
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user