discourse-ai/lib/tokenizer/open_ai_gpt4o_tokenizer.rb

14 lines
262 B
Ruby
Raw Normal View History

2024-07-22 14:26:14 -04:00
# frozen_string_literal: true
module DiscourseAi
module Tokenizer
class OpenAiGpt4oTokenizer < OpenAiTokenizer
class << self
def tokenizer
@@tokenizer ||= Tiktoken.get_encoding("o200k_base")
end
end
end
end
end