omniai 1.0.8 → 1.0.9

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: 1971cb590311266b342596c44ff56398999b8657e9f6cf2b8d2afffb8b91257b
4
- data.tar.gz: 7866818c3dd9c1af3b03a351ecdc38c527ef1d08bb877533a9f9159bce8d5ed5
3
+ metadata.gz: 2f4665d73734c57eaf861adb6a941c7e3102c5de00ec4739f29b69123b829a1d
4
+ data.tar.gz: '03487dbb919fb7821be77fcbecac4d0adefa5c62d511fffa2ca06d6c3f28c946'
5
5
  SHA512:
6
- metadata.gz: 2c93b8a97fc2ca09765e9c2c537c15491a7344cc505e6204addd972dbb2c7ee2219213d2892745df48bdd4c0193bf3d80391142da2462de437290fc3a6d442db
7
- data.tar.gz: 0b7d13dfde39f89c78a57ea3b03549262fb7b9962d127a01e89ca3785402098b6c0e34fc957145615d279a14f4d644769c25a2d3f833aa9c1136397d6b7384b3
6
+ metadata.gz: 105c7d3af61b4f79b1bdfb15c083ea48cbe92bb6b81bc2ccdccef2f8873ed2b358cbf3a7c3418187a7b2b4d27d0768a5c1a8ce36866d263eb107cee91842011f
7
+ data.tar.gz: 4ddad063456e0d1a98c6b21c284fb66ba5ce672f6b4df4f03522ebf3f341269ebecf28607132a84120b9de621b9e5ca65b219b0f072bbf36bc5f4970461458a4
@@ -33,7 +33,7 @@ module OmniAI
33
33
 
34
34
  # @return [Array<OmniAI::Chat::Choice>]
35
35
  def choices
36
- @choices ||= @data['choices'].map { |data| Choice.new(data:) }
36
+ @choices ||= @data['choices'].map { |data| Choice.for(data:) }
37
37
  end
38
38
 
39
39
  # @param [index] [Integer]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = '1.0.8'
4
+ VERSION = '1.0.9'
5
5
  end
data/lib/omniai.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'event_stream_parser'
3
4
  require 'http'
4
5
  require 'zeitwerk'
5
6
 
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: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre