Sha256: 3b0a488b3f2087df6451dc01600a13250374d3500241f02f47235a09a88445ab

Contents?: true

Size: 165 Bytes

Versions: 2

Compression:

Stored size: 165 Bytes

Contents

module OpenAI
  Completion = Struct.new(:choices, :created, :id, :model, :object, keyword_init: true) do
    def created_at
      Time.at(created)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openai-0.3.0 lib/openai/completion.rb
openai-0.2.0 lib/openai/completion.rb