mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-16 09:27:14 -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/rs/zerolog/log"
|
||||||
"github.com/sashabaranov/go-openai"
|
"github.com/sashabaranov/go-openai"
|
||||||
|
|
||||||
"pluja.dev/kycnot.me/database"
|
"pluja.dev/kycnot.me/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -15,8 +16,8 @@ func GetTosReviews(text string) ([]database.TosReview, error) {
|
|||||||
return nil, errors.New("empty text")
|
return nil, errors.New("empty text")
|
||||||
}
|
}
|
||||||
|
|
||||||
promptPrice := 0.005
|
promptPrice := 0.0025
|
||||||
completionPrice := 0.015
|
completionPrice := 0.01
|
||||||
model := openai.GPT4o
|
model := openai.GPT4o
|
||||||
|
|
||||||
// Call the OpenAI API
|
// Call the OpenAI API
|
||||||
|
Loading…
Reference in New Issue
Block a user