diff options
author | icebaker <icebaker@proton.me> | 2024-01-06 22:09:23 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2024-01-06 22:09:23 -0300 |
commit | c4807b26f0d530ef99ff87b6c5c45a4953ba958a (patch) | |
tree | 8d2709d35089ec8afb60bd20c6855de4623e3d1b /logic/providers/ollama/tokens.rb | |
parent | bfe0e76e3683a71bb8ce5bfdaae99b0252e7be05 (diff) |
adding new providers
Diffstat (limited to 'logic/providers/ollama/tokens.rb')
-rw-r--r-- | logic/providers/ollama/tokens.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/logic/providers/ollama/tokens.rb b/logic/providers/ollama/tokens.rb new file mode 100644 index 0000000..45500fb --- /dev/null +++ b/logic/providers/ollama/tokens.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module NanoBot + module Logic + module Ollama + module Tokens + def self.apply_policies!(_cartridge, payload) + payload[:messages] = payload[:messages].map { |message| message.except(:_meta) } + payload + end + end + end + end +end |