Sha256: f5712242c5b5e4624fe9f4a1064283aabc8a857597ba8ccdf71979c1127f7baa
Contents?: true
Size: 401 Bytes
Versions: 13
Compression:
Stored size: 401 Bytes
Contents
module OpenAI class Models def initialize(access_token: nil, organization_id: nil) OpenAI.configuration.access_token = access_token if access_token OpenAI.configuration.organization_id = organization_id if organization_id end def list OpenAI::Client.get(path: "/models") end def retrieve(id:) OpenAI::Client.get(path: "/models/#{id}") end end end
Version data entries
13 entries across 13 versions & 2 rubygems