summaryrefslogtreecommitdiff
path: root/logic
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-11-18 19:29:03 -0300
committericebaker <icebaker@proton.me>2023-11-18 19:29:03 -0300
commit989c276b6acf9d0e2b584d980b72a4eb9564a77c (patch)
tree0bc0d849fad940f1aa041e42fbf14a031062acc0 /logic
parent2cc2aef7011036e16dae89212455a504132d49c1 (diff)
fixing TODOs
Diffstat (limited to 'logic')
-rw-r--r--logic/providers/openai/tools.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/logic/providers/openai/tools.rb b/logic/providers/openai/tools.rb
index 080d81e..1aa9029 100644
--- a/logic/providers/openai/tools.rb
+++ b/logic/providers/openai/tools.rb
@@ -10,8 +10,10 @@ module NanoBot
module Tools
def self.prepare(cartridge, tools)
applies = []
+
+ tools = Marshal.load(Marshal.dump(tools))
+
tools.each do |tool|
- # TODO: Does this mutate the hash?
tool = Helpers::Hash.symbolize_keys(tool)
cartridge.each do |candidate|