by Ultimatt · 3y ago · 0 comments
I have a project that uses davinci-003 (not even the cheaper ChatGPT API) like crazy and I don't come close to paying more than $30-120/month. With the ChatGPT API, it'll be 10x less...
Is it possible you had a bug that caused you to send far more requests than you were intending to send? Or maybe you used the older models which are 10x more expensive?
fetch("https://api.openai.com/v1/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${window.localStorage.getItem('apikey')}`,
},
body: JSON.stringify({
"messages":[
{"role":"system","content":""},
{"role":"user","content":""}
],
"temperature":0.9,
"max_tokens":300,
"top_p":1,
"frequency_penalty":0,
"presence_penalty":0.6,
"model":"gpt-3.5-turbo",
"stream":false}),
})
])I’ve been playing with davinci pretty extensively and the only reason I’ve actually given OpenAI my credit card was because they won’t let you do any fine-tuning with their free trial credit, or something like that. You’re off by orders of magnitude, ESPECIALLY with the new 3.5 model.