-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managing OpenAI usage and costs #41
Comments
Hey @ChristianIvicevic , you bring up a great point here. In the current design, OpenAI Completions are billed by "tokens" that are both sent and generated. Pricing per token depends on the model used. The number of tokens generated are generally predictable (as a commit message is usually only so big) but Today, I see two low-hanging solutions for reducing cost:
OpenAI's pricing page can be found at |
Thanks for the summary. I might have a proposal that may be an option to take into consideration. As of right now I can technically create a patch for a specific commit and without its subject line ask ChatGPT about a descriptive commit message. Unlike Given that GPT can't explain the reasoning behind certain changes summarizing the details of each file feels less valuable so I'd like to know whether the described approach with less output might be a feature of |
Contributions are very much welcome! Feel free to a pull request!
|
This repo uses a shorter prompt. |
Given the new Chat GPT models and cheaper pricing, is this issue still relevant? |
Greetings,
out of curiosity I tried out
gptcommit
yesterday for the first time with three commits. Two of them were a bit larger with 265 additions and 214 deletions according to git. Much to my surprise there were two dozen requests and got billed for $0.55. I'd like to ask whether it's expected that the amount of requests (and thus the price) is that high or whether this might indicate a bug?The text was updated successfully, but these errors were encountered: