alexrudall / ruby-openai

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

Remove inexistent threads#list API #424

Closed ignacio-chiazzo closed 3 months ago

ignacio-chiazzo commented 5 months ago

The Threads API doesn't expose a method to get the list of threads. It isn't listed on the official documentation:

Screenshot 2024-01-21 at 10 10 17 PM

Trying that endpoint returns the following error:

"OpenAI HTTP Error (spotted in ruby-openai 6.3.1): {"error"=>{"message"=>"Your request to GET /v1/threads must be made with a session key (that is, it can only be made from the browser). You made it with the following key type: secret.", "type"=>"invalid_request_error", "param"=>nil, "code"=>"missing_scope"}}"

All Submissions:

alexrudall commented 3 months ago

Thanks, @ignacio-chiazzo - looks like it was undocumented and removed in November. I'm not call this a breaking change as it was not documented and was gone within a week of this method being added.

alexrudall commented 3 months ago

Released in v6.4