summaryrefslogtreecommitdiff
path: root/logic/providers/google/tokens.rb
blob: 3d5492fa13723fe04eca4cc8578977d806a4b7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'openai'

module NanoBot
  module Logic
    module Google
      module Tokens
        def self.apply_policies!(_cartridge, payload)
          payload[:contents] = payload[:contents].map { |message| message.except(:_meta) }
          payload
        end
      end
    end
  end
end