diff options
author | icebaker <113217272+icebaker@users.noreply.github.com> | 2023-12-28 21:01:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 21:01:33 -0300 |
commit | 8b7b90c9601eb3d73ae443142aab2c9d8168cb62 (patch) | |
tree | 540270080c6cc6d61b6c2f81e9b70c81f0e60f28 /logic/providers/mistral | |
parent | 347ac029c922fbb3843ec22324527f2c6b3ba9a9 (diff) | |
parent | 94d7aa2b726a09abfac85f472eef8921d14c16a9 (diff) |
Merge pull request #12 from icebaker/ib-mistral-ai
Adding support for Mistral AI and upgrading gemini-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 |