diff options
author | icebaker <icebaker@proton.me> | 2023-12-28 19:43:00 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-12-28 19:43:00 -0300 |
commit | 46638e0b4e1809d683f470922f9cc27ab161c248 (patch) | |
tree | a6135a74b8c56abe435fb557c873273e32f86eb1 /logic/providers/mistral | |
parent | 347ac029c922fbb3843ec22324527f2c6b3ba9a9 (diff) |
upgrading gemini-ai and adding support for mistral-ai
Diffstat (limited to 'logic/providers/mistral')
-rw-r--r-- | logic/providers/mistral/tokens.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/logic/providers/mistral/tokens.rb b/logic/providers/mistral/tokens.rb new file mode 100644 index 0000000..7aa64b7 --- /dev/null +++ b/logic/providers/mistral/tokens.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module NanoBot + module Logic + module Mistral + module Tokens + def self.apply_policies!(_cartridge, payload) + payload[:messages] = payload[:messages].map { |message| message.except(:_meta) } + payload + end + end + end + end +end |