Where can I find documentation for the latest GPT-4 API calls (python)?
In addition, "OpenAI. The “ChatCompletion” method is no longer available, what method can be used instead?
API call reference . You can find the function call for chat/ completion on this link, just use gpt-4 as model
Thx,I know the URL address you sent, but the latest OpenAI API seems to have changed a lot, such as “ChatCompletion”, which is gone. If you use the GPT-4 model, some parameters cannot be used in the current API reference, and an error will be reported.
Are you sure you have latest version of openai package? Can you share your code and exact errors?
- openai Version: 0.27.6
2.I found that the API call of OpenAi can be called normally now, and at the same time, the disappearing “openai.ChatCompletion.XXX” function appeared again. I judge that the problem should be caused by the version update of the system background.
3.If there is a better API guide or reference, please let me know