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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 775c607f00c961197a61afa173231aac050d13c323a3e75f3b14ab5526cf351c
4
- data.tar.gz: ffbf35f0bdb94d327a5c9bac459d5a7722ca9425b9d5f6bb4b8959a5686a82bb
3
+ metadata.gz: dde1faee02ffb3dfc4212c9cd22022981f999f0c4eef6fe68336aaf9425a7b27
4
+ data.tar.gz: 3de4e3c86d0267d5ca12e9e72a1a1a457bd2c1d66e1c652ad04af02da456ec19
5
5
  SHA512:
6
- metadata.gz: 025d4cd7939172748693280fdd5618b4fa28a180a950d672493b314fd4e1caaa5d0fe9d3d5fc8bd60c40a06a5cdf67ac9fba99c98ea901d30d5c096521c18b3a
7
- data.tar.gz: 00212e9ee22f72b6da29f59e66ffd781d238515235423ae5bb517f5c33b78ce9d274fd715145f236e867585a662e28db89ca6093fbb85043130e75f64ae2b888
6
+ metadata.gz: 14c755b43b85e885d013ac7bf9b9f4d85dc1e341eb500e75be0bfc3f78ed7f0ee6abfebcbc28dc95099411d1a66ac7cbfba9c93b02e61162c9a5f7dd91348889
7
+ data.tar.gz: 61dee2c167246ce41d511ae1caad74e5893134318f173812b2b8aae3af102a367cce4e5f29fb529ed1a84b4965ac761e090bb3ee63117dfbfdb30621e968f166
@@ -113,7 +113,7 @@ module OxAiWorkers
113
113
  end
114
114
 
115
115
  def rebuild_worker
116
- @worker.last_call = nil
116
+ # @worker.last_call = nil
117
117
  @worker.call_stack = @call_stack.dup
118
118
  @worker.stop_double_calls = @stop_double_calls
119
119
  @worker.messages = []
@@ -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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '0.9.6.6'
4
+ VERSION = '0.9.6.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox-ai-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6.6
4
+ version: 0.9.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev