I don’t use edit endpoint a lot at this time. With that said, the documentation does lag behind sometimes because OpenAI is moving as such a quick speed (even with all the safeguards they have in place). I know we just had someone using the wrong answers endpoint…
Thanks for sharing, though. It’s how we all improve!
I just hit the same error. The endpoint reports 404 Not Found with “Invalid URL (POST /v1/edits)” whenever it does not like the input. For example if TopP and Temperature are both set even to their default values of 1 this error comes up.
I had to add a bit of code to skip inputs when using the default values.
Hey folks, thanks for calling this out and being patient, we have updated the model parameter to make it clear that the edits API only works with text-davinci-edit-001 or the code-davinci-edit-001 model.
Hi everyone, rookie here - ChatGPT has been helping me learn to code!
I’ve specified the model as text-davinci-edit-001 but i’m still getting the { “error”: { “message”: “Invalid URL (POST /v1/edits)”, “type”: “invalid_request_error”, “param”: null, “code”: null }
so if you look in the new playground:OpenAI API, you can do a call to say: “Mode” = “Complete” in the dropdown and use the model = “text-davinci-003”. then when you switch over to the example for “mode” = “edit” you cant use Model = “text-davinci-003” you need to change the Model to equal “text-davinci-edit-001” and it kinda works…but if you dont change the model, even in playground you see the error everyone is seeing here.
it is clear via the logic, you need more than one call to understand how this is working, and you must change the model to text-davinci-edit-001. im still seeing an issue, as I only get some kind of code back, not text when I try this in python. but im past the 404 error:)
it also works in the playground. API explorers are a most to learn this stuff:)
HI
facing this issue on both models that are allowed for edit.
openai.error.InvalidRequestError: The model: code-davinci-edit-001 does not exist
openai.error.InvalidRequestError: The model: text-davinci-edit-001 does not exist
The model: 'text-davinci-edit-001' does not exist This error persists when calling API through the endpoint POST https://api.openai.com/v1/edits and also in the Playground. Proof for the playground:
I’ve been playing around with it using the Java OpenAI package and also got the 404 error. After finding this I tried the text-davinci-edit-001 model and also got the error that this model doesn’t exist.
I made a call to get all the models (OpenAI API) and then pick one from there. But it’s always either the 404 or a 500 error.
Following the link to the playground above shows that there is no model that you can select when picking “edit”. So I guess you have to simply use the Chat option and alter the prompt to include the input and instruction at the same time. That seems to work fine.
Having same issue as others with the API call via code not working but playground works and shows the following code but using the exact same values in app code does not work (completion api seems to be the only one that works):
There could be more links to this part of the doc, but it is there: OpenAI API I think this small excerpt will save people a lot of time experimenting.