Sha256: b2448e7c98a571af386b02f1c126a09e1dd04935cde5ca9724f0f9fc46c52e3a

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nano-bots-3.4.0 logic/providers/openai/tokens.rb
nano-bots-3.3.0 logic/providers/openai/tokens.rb
nano-bots-3.2.0 logic/providers/openai/tokens.rb
nano-bots-3.0.1 logic/providers/openai/tokens.rb
nano-bots-3.0.0 logic/providers/openai/tokens.rb
nano-bots-2.5.1 logic/providers/openai/tokens.rb
nano-bots-2.5.0 logic/providers/openai/tokens.rb
nano-bots-2.4.1 logic/providers/openai/tokens.rb
nano-bots-2.4.0 logic/providers/openai/tokens.rb
nano-bots-2.3.0 logic/providers/openai/tokens.rb