diff options
author | icebaker <icebaker@proton.me> | 2023-11-18 19:29:03 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-11-18 19:29:03 -0300 |
commit | 989c276b6acf9d0e2b584d980b72a4eb9564a77c (patch) | |
tree | 0bc0d849fad940f1aa041e42fbf14a031062acc0 /logic | |
parent | 2cc2aef7011036e16dae89212455a504132d49c1 (diff) |
fixing TODOs
Diffstat (limited to 'logic')
-rw-r--r-- | logic/providers/openai/tools.rb | 4 |
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| |