ox-ai-workers 0.9.6.6 → 0.9.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/oxaiworkers/iterator.rb +1 -1
- data/lib/oxaiworkers/module_request.rb +5 -2
- data/lib/oxaiworkers/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: dde1faee02ffb3dfc4212c9cd22022981f999f0c4eef6fe68336aaf9425a7b27
|
4
|
+
data.tar.gz: 3de4e3c86d0267d5ca12e9e72a1a1a457bd2c1d66e1c652ad04af02da456ec19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c755b43b85e885d013ac7bf9b9f4d85dc1e341eb500e75be0bfc3f78ed7f0ee6abfebcbc28dc95099411d1a66ac7cbfba9c93b02e61162c9a5f7dd91348889
|
7
|
+
data.tar.gz: 61dee2c167246ce41d511ae1caad74e5893134318f173812b2b8aae3af102a367cce4e5f29fb529ed1a84b4965ac761e090bb3ee63117dfbfdb30621e968f166
|
data/lib/oxaiworkers/iterator.rb
CHANGED
@@ -14,6 +14,7 @@ module OxAiWorkers
|
|
14
14
|
@finish_reason = nil
|
15
15
|
@on_stream_proc = on_stream
|
16
16
|
@call_stack = call_stack
|
17
|
+
@last_call = nil
|
17
18
|
|
18
19
|
if @model.api_key.nil?
|
19
20
|
error_text = "#{@model.model} access token missing!"
|
@@ -36,7 +37,7 @@ module OxAiWorkers
|
|
36
37
|
@tool_calls_raw = nil
|
37
38
|
@is_truncated = false
|
38
39
|
@finish_reason = nil
|
39
|
-
@last_call = nil
|
40
|
+
# @last_call = nil
|
40
41
|
end
|
41
42
|
|
42
43
|
def append(role: nil, content: nil, messages: nil)
|
@@ -140,8 +141,10 @@ module OxAiWorkers
|
|
140
141
|
# Skipping for now, as partial args are likely useless.
|
141
142
|
next
|
142
143
|
end
|
143
|
-
|
144
|
+
OxAiWorkers.logger.info("function: #{function.inspect}", for: self.class)
|
144
145
|
# Accumulate parsed tool calls
|
146
|
+
next if function['name'].empty?
|
147
|
+
|
145
148
|
@tool_calls << {
|
146
149
|
class: function['name'].split('__').first,
|
147
150
|
name: function['name'].split('__').last,
|
data/lib/oxaiworkers/version.rb
CHANGED