Lists the currently available models, and provides basic information about each one such as the owner and availability.
Returns
List models
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
page = openai.models.list
puts(page){
"data": [
{
"id": "id",
"created": 0,
"object": "model",
"owned_by": "owned_by"
}
],
"object": "list"
}Returns Examples
{
"data": [
{
"id": "id",
"created": 0,
"object": "model",
"owned_by": "owned_by"
}
],
"object": "list"
}