3 ms·
Seems rather costly to do it this way. Why not just leave an effectively empty commit message and then use GPT to generate a summary based on the diff only whe
by zitsarethecure 4y ago
Seems rather costly to do it this way. Why not just leave an effectively empty commit message and then use GPT to generate a summary based on the diff only when you need one?
- nomilk 4y ago> GPT 3.5 turbo engine is 1/5th of a cent per 1000 tokens Diffs vary in length, small ones might be a few dozen words (tokens); large ones can be much more. GPT 3.5 Turbo's limit is 4096 tokens per question [1], meaning the most it can cost is 4/5ths of a cent per commit. I average less than 10 commits per day, so if all my diffs are large, that will cost $0.08/day, or about $2.50/month. [1] https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/chatgpt?pivots=programming-language-chat-completions https://learn.microsoft.com/en-us/azure/cognitive-services/o...