summaryrefslogtreecommitdiff
path: root/logic/providers/mistral/tokens.rb
blob: 7aa64b7a854636128cd3796acd62f5037a816af0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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