diff options
Diffstat (limited to 'logic/providers/openai')
-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| |