Skip to content
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

Use Edits endpoint in codegpt-improve function #15

Open
lccambiaghi opened this issue Mar 27, 2023 · 1 comment
Open

Use Edits endpoint in codegpt-improve function #15

lccambiaghi opened this issue Mar 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@lccambiaghi
Copy link

lccambiaghi commented Mar 27, 2023

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!

@lccambiaghi lccambiaghi changed the title Use edits endpoint when using "Improve this code" prompt Use `edits endpoint when using "Improve this code" prompt Mar 27, 2023
@lccambiaghi lccambiaghi changed the title Use `edits endpoint when using "Improve this code" prompt Use Edits endpoint in codegpt-improve function Mar 27, 2023
@jcs090218
Copy link
Member

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

@jcs090218 jcs090218 added the enhancement New feature or request label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants