emacs-openai/codegpt

Use Edits endpoint in `codegpt-improve` function

lccambiaghi opened this issue · 1 comments

Reading the guide for text completion using OpenAI, they recommend to use the edit endpoint for refactoring tasks.

It would be great if the function codegpt-improve used this endpoint instead. Again, as a nice bonus, using this endpoint is free for this initial period of beta!

Ah, thanks for opening this issue. It does make sense to me. I will re-think the codebase and implement this over the weekend!