omniai 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniai/chat/response/choice.rb +0 -5
- data/lib/omniai/chat/response/payload.rb +0 -5
- data/lib/omniai/chat.rb +1 -1
- data/lib/omniai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81c34e7c05b90e85fe99ba87f0b462f4322a0dd14c74afdb5f951faccdc698d6
|
4
|
+
data.tar.gz: 551b238e17c909abbe3b08ecf630a2f6aa0047a17413c7966d23ca9ccbf0d26d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c291e2840cd9782046d7011e7becc77b2d9c64da427d6785ed121ae430a4153f7fb3d6f28f4f4c9cb943f18a0b8d7c20e345fc8c6d0097faa83eb205a302132
|
7
|
+
data.tar.gz: d592b529340cacdcf458295a9914589806f6c568469c0c9548cdbd63fa639d64dcb04982dc2f7f68506e2207809a2b1b689b6267dabe262f3847c298785f5ba7
|
data/lib/omniai/chat.rb
CHANGED
@@ -103,7 +103,7 @@ module OmniAI
|
|
103
103
|
def complete!(response:)
|
104
104
|
completion = self.class::Response::Completion.new(data: response.parse)
|
105
105
|
|
106
|
-
if @tools && completion.
|
106
|
+
if @tools && completion.tool_call_list.any?
|
107
107
|
@messages = [
|
108
108
|
*@messages,
|
109
109
|
*completion.choices.map(&:message).map(&:data),
|
data/lib/omniai/version.rb
CHANGED