ruby-openai-swarm 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby-openai-swarm/core.rb +3 -0
- data/lib/ruby-openai-swarm/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: ef97e65185db604611e9a15e4e5a3dcf3b35eb38e8c87e54040175f1947280b8
|
4
|
+
data.tar.gz: cac5ea7cad0afc755fd528e39e5f77c10db1ecbda43d94b4021863d6f1ac5cea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80460e88514e6e117d11de243ddb44f3d412b6c009f6d5ace6f18e82c615fef54f6ccab33e0e0ebb1ec0b9a2d762a2011ed8bef48dc3d0afaf6dd908eb07d331
|
7
|
+
data.tar.gz: 101d70a78daa2d7f2be6917b23aaa81ff0c6e76d37d6a49d5405af7983fd2ba19f974ef6620fec79b4899644a6b8c4d208b45df9292aee834456f6fea57bee6e
|
data/Gemfile.lock
CHANGED
@@ -212,6 +212,9 @@ module OpenAISwarm
|
|
212
212
|
|
213
213
|
yield({ delim: "start" }) if block_given?
|
214
214
|
completion.each do |chunk|
|
215
|
+
|
216
|
+
raise OpenAISwarm::Error.new(chunk['error']) if chunk['error']
|
217
|
+
|
215
218
|
delta = chunk.dig('choices', 0, 'delta')
|
216
219
|
if delta['role'] == "assistant"
|
217
220
|
delta['sender'] = active_agent.name
|