Need correct engine version

I’m testing the generation of user stories. The following line comes back as “Engine deprecated”. What should be the correct value when using GPT 4 ? I’ve tried a number different versions but seem to miss the correct one.
xxxx = ([redacted to be able to post here] /v1/engines/text-davinci-003/completions");

That is a very old style of API access URL and also a model that has been shut off.

(did you ask an AI, with their limited training on new information?)

Instead, look at the code examples of chat completions in the API reference, where you also will need to construct the data you send as formatted messages instead of a prompt parameter. That will get you on the right track.

Thank you. Yes the line came from ChatGPT originally. I appreciate the feedback and will convert to chat style.