omniai 0.1.0 → 0.1.1

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: ba57f22a167440e6c6606d9bd1cf098673a11164b088a21f2a0e4d5b05b9689d
4
+ data.tar.gz: 2adbbf886759d517634f99e95670a532747afec94630e6df226d2d52c52f4330
5
5
  SHA512:
6
- metadata.gz: c6ed29f063e505bf58ad6ca19f8d4dace1627f73fb3bee8b52fb5f9756d550f3ff322e7ef00d286044eaa9a0b48a16811e62efb70c130948302834e9206a362d
7
- data.tar.gz: 512fa19f0b5cb1c67a081d413bdf8e9b964716f08151fc20b048f5c2b46edc4eb8ec891563eb510c98e7ae5749c63afbbb661546718ec219f1287592c1f351da
6
+ metadata.gz: f08050fdae89870b429b70f0ebd4c8ed422beecdca7a201fd41bc9653b3f25dc277a9d25a6a9ca95a2abd7d95e7595a4b00e1282bf31e811b51a898eb38a5c0f
7
+ data.tar.gz: 5e256941913b412d2c7025cd20cfe836c786cf9556d8341b2b8106728eed0798236b64bacd06933127737a0bc69fae8e1d4b1cd42b2c3664091b25036e325a24
@@ -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.1'
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre