Closed Christopher-Hayes closed 1 year ago
hehe, thats the wording from openAI guys, how did you do calculations so you get 30x?
Prompt: $0.03 / 1K tokens
Completion: $0.06 / 1K tokens
Prompt and completion: $0.002 / 1K tokens
On completion, GPT-4 is 0.06 / 0.002 = 30 times more expensive than GPT-3.5. Or 15x more expensive if you're just comparing prompt pricing.
Looking at the code now, it looks like OpenCommit is using gpt-3.5-turbo
: https://github.com/di-sukharev/opencommit/blob/e2f68b72565d84462ac8918ce73770741b152551/src/api.ts#L43
fixed the wording, thanks brother
from the README.md:
Is this correct? I'm a little confused by the wording. How can it be 10x cheaper than GPT-3, but only 6x cheaper than GPT-4?
From my calculations, GPT-4 is approximately 30x more expensive than GPT-3.5-turbo (completions specifically). Is OpenCommit using the davinci-003 prompt complete, or something else? Those 10x cheaper and 6x cheaper values seem off.
Btw, love the idea. I already love gitmoji, so happy opencommit supports it and I can automate it with ai.