openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.7k stars 483 forks source link

OpenAI completion - Legacy (OpenAI API deprecation) #164

Closed coreation closed 1 year ago

coreation commented 1 year ago

Hi there,

I've seen that OpenAI recently added the "Legacy" tag to their completion API. I assume this is going to be replaced by v1/chat/completions. It's not explicitly stated, but since they also added the Legacy tag to their completion models and mention that you should use GPT3.5 - turbo, which is used for chat (completion), sort of indicates that.

Am I correct in that assumption and if so, is my assumption that the "completions" function on the "Client" will be marked as deprecated as well, in favor of the "chat" function? If there's something I can help with, let me know!

coreation commented 1 year ago

Update: The completion endpoint will not be deprecated or removed, but the models will be. The instruct GPT3.5 will be released soon, but does not mean the completions endpoint will be shutdown.