omniai 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba57f22a167440e6c6606d9bd1cf098673a11164b088a21f2a0e4d5b05b9689d
4
- data.tar.gz: 2adbbf886759d517634f99e95670a532747afec94630e6df226d2d52c52f4330
3
+ metadata.gz: 7214249d8bda8299971c31dace84132a52f64b1464ff4d28af27f4a0f93221f8
4
+ data.tar.gz: c52f1ef0038da9fc26901f1838d2497e26febcf564548101a96acf03c49c6aa4
5
5
  SHA512:
6
- metadata.gz: f08050fdae89870b429b70f0ebd4c8ed422beecdca7a201fd41bc9653b3f25dc277a9d25a6a9ca95a2abd7d95e7595a4b00e1282bf31e811b51a898eb38a5c0f
7
- data.tar.gz: 5e256941913b412d2c7025cd20cfe836c786cf9556d8341b2b8106728eed0798236b64bacd06933127737a0bc69fae8e1d4b1cd42b2c3664091b25036e325a24
6
+ metadata.gz: a922ecde2f712428565fa4b0f4544c26249f9c0a85f5801c2b4029d15650d80edca3fae70fb81356c5c66ddce681ffca544c77d3255ac02c335071d9a5b7db4b
7
+ data.tar.gz: 53756ecbb1aa2cdbad35c36f9f8b25803e7065661ab2e02716f28f44d7cab3dd9e253bcf6d1fc94dcfaa8d57a27b5f25ed8447c3e50b9d884d1d08fae72ddc75
@@ -31,6 +31,11 @@ module OmniAI
31
31
  @data['model']
32
32
  end
33
33
 
34
+ # @return [Array<OmniAI::Chat::Choice>]
35
+ def choices
36
+ @choices ||= @data['choices'].map { |data| Choice.new(data:) }
37
+ end
38
+
34
39
  # @param [index] [Integer]
35
40
  # @return [OmniAI::Chat::Delta]
36
41
  def choice(index: 0)
@@ -38,7 +38,7 @@ module OmniAI
38
38
 
39
39
  # @return [Array<OmniAI::Chat::Choice>]
40
40
  def choices
41
- @choices ||= @data['choices'].map { |choice| Choice.new(data: choice) }
41
+ @choices ||= @data['choices'].map { |data| Choice.new(data:) }
42
42
  end
43
43
 
44
44
  # @param [index] [Integer] optional - default is 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre