Is there a possibility to get available models for specific functions. For my case I would need a list of all models that can be used for api.openai.com/v1/chat/completitons. Currently the only functionality is calling api.openai.com/v1/models which will return all possible models and I don’t know how to get information on which of these can be used for chat completitions.
I can’t post links, but the question with a title “API models endpoint with model features, pricing, context length? (yes - with this Python code)” is basically the same question but @_j has deleted(?) the credited answer or the answer is otherwise not visible to me.
Not sure if we understood eachother correctly I was wondering what was the answer by @_j that these two comments are responding to as there isn’t anything and that seems to be the solution.
Yes I know J will probably respond to you, I was just explaining why solution may be gone. You kind of asked two questions what is the solution and why is it gone… I answered the latter…
And if he gives you the solution you can check the box and reward @_j for his work… most folks don’t check solution lol.
Just yesterday I posted a bit of code that will filter the list of models from the models endpoint down to those which can be used with the chat completions endpoint.
You’ll likely want to “chat” with either gpt-4o-2024-11-20, or gpt-4-turbo. Alternately, submit a single question needing problem-solving ability as just a user message to o1-preview.