omniai-google 1.6.2 → 1.6.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: dbef0413582b7fa949e9458e1cde8d18d2a41aeb65120c5eeebf5335c90c708b
4
- data.tar.gz: e5b25bb1c028defefb39ae7c97973df08d63a9391168025a379604e8321cb418
3
+ metadata.gz: b2626eef567a04e92b73eaf64a39dc274c2651b479810cd62a94be1a920cf25f
4
+ data.tar.gz: 8c968e5ca2328ce77e604f91c36607c22ef6572bf2e7633505316fdd6bab93db
5
5
  SHA512:
6
- metadata.gz: a3ddf7b5f4a8c4ea865978ebf60eca20848b15bea2660c2bf136634ef9578ae6887f7c6a4b2a471ab526403e5d3ba94f16298f980360edd40671008bbd555ea2
7
- data.tar.gz: 7d49c733cb51aa17ed3dd7ccca7702aaeacd818623c2a227e4363ce675ed6aa42ae6cde3a1754011273d9ab31db41b72e1c2c98555740a00bc75cb29bfb9652b
6
+ metadata.gz: c104b92ca09ae4c29285b2ac35e7badd23d2c54e4cb7189b0f1fb2fa1d0ad0cac4770e6c8ceeaaf5468225db52913458e6d4b6b94a0054f5c58735b01a78911d
7
+ data.tar.gz: a1037ddc9ccc58f84dfba6a094d0c7e1481dbba103e4e4d9f16dfbfb21def59fee61e4c463e96e3807c0763db4920f84934133b66090c9a8d575ac20c4225913
@@ -36,9 +36,10 @@ module OmniAI
36
36
  # MESSAGE_SERIALIZER.call(message)
37
37
  MESSAGE_SERIALIZER = lambda do |message, context:|
38
38
  parts = message.content.is_a?(String) ? [Text.new(message.content)] : message.content
39
+ role = message.system? ? Role::USER : message.role
39
40
 
40
41
  {
41
- role: message.role,
42
+ role:,
42
43
  parts: parts.map { |part| part.serialize(context:) },
43
44
  }
44
45
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Google
5
- VERSION = '1.6.2'
5
+ VERSION = '1.6.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre