alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️ NEW: Assistant Vector Stores
MIT License
2.61k stars 302 forks source link

Please re-add support for completions API #381

Closed jimkleban closed 3 months ago

jimkleban commented 7 months ago

Is your feature request related to a problem? Please describe. Yes, deprecated models such as text-davinci-003 and not deprecated models such as gpt-3.5-turbo-instruct are compatible with legacy Completions endpoint and not Chat Completions.

Request is to re-add completions until there are no longer any supported models that use these.

Describe the solution you'd like Re-add completions as it was.

Describe alternatives you've considered Not using this gem :(

alexrudall commented 7 months ago

Sorry to hear this has negatively affected you - are you aware that these models will be removed on 4 Jan? Could you use version 5.2 of ruby-openai until then?

JakeHendrick commented 7 months ago

Based on that deprecation doc it appears that some old models were deprecated and a new one is available (ie. gpt-3.5-turbo-instruct).

The new model is still compatible with completions endpoint which is not deprecated (yet): https://platform.openai.com/docs/models/gpt-3-5

gpt-3.5-turbo-instruct: Similar capabilities as text-davinci-003 but compatible with legacy Completions endpoint and not Chat Completions.

I would also request maintaining support for the completions endpoint while there are still non-deprecated models available for it.

jimkleban commented 7 months ago

Yes, thanks I am using 5.2 and my request for completions API is for gpt-3.5-turbo-instruct

moeSizlak commented 6 months ago

Agreed. It's not possible to use gpt-3.5-turbo-instruct without the completions endpoint. Please re-add completions!

alexrudall commented 6 months ago

Will try to re-add this weekend.

mishranant commented 3 months ago

@alexrudall request you to merge my PR resolving this issue https://github.com/alexrudall/ruby-openai/pull/444

alexrudall commented 3 months ago

Apologies for the delay, added back in v6.5