omniai 0.1.0 → 0.1.2

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: 7f87f1b50c279a434ef7c23fb84f66321450897a62c9db0eda70659e3ac024a6
4
- data.tar.gz: 334d3055c491bb582107b62ff555bba9bd175d9a23d7492cbfb07bdae4a1b876
3
+ metadata.gz: '08e84fed0ec1535369239cec24e1ba320714b006d63c41c70a3fab4ad9b27448'
4
+ data.tar.gz: 1b1c8c415873efad649481e9a54b2377e4a1aa3081c1fe17c03615f59d6c82e8
5
5
  SHA512:
6
- metadata.gz: c6ed29f063e505bf58ad6ca19f8d4dace1627f73fb3bee8b52fb5f9756d550f3ff322e7ef00d286044eaa9a0b48a16811e62efb70c130948302834e9206a362d
7
- data.tar.gz: 512fa19f0b5cb1c67a081d413bdf8e9b964716f08151fc20b048f5c2b46edc4eb8ec891563eb510c98e7ae5749c63afbbb661546718ec219f1287592c1f351da
6
+ metadata.gz: bcebbc73ba9c7fc02aac3c49485bca5c9beea176e53d160fbddfb787442bac4dca7d643b220ee67a156fd9b464af273a8bedcf8201e3120c6671caf5fc9740a8
7
+ data.tar.gz: aa4a0d58e825d950b8241dfc1fb1da789a1efa3f81f7b7e67d09f8126696624f4a5d4f34dc50d913001ef1ee4f5b00e71f1ac6a478620aa8e0b38ed60d5f20b5
@@ -62,7 +62,7 @@ module OmniAI
62
62
  parser.feed(chunk) do |_, data|
63
63
  break if data.eql?('[DONE]')
64
64
 
65
- chunk = OmniAI::OpenAI::Chat::Chunk.new(data: data.parse)
65
+ chunk = OmniAI::OpenAI::Chat::Chunk.new(data: JSON.parse(data))
66
66
  @stream.call(chunk)
67
67
  end
68
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2'
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre