mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-06 03:28:13 +00:00
1d786fbaaf
* FEATURE: Set endpoint credentials directly from LlmModel. Drop Llama2Tokenizer since we no longer use it. * Allow http for custom LLMs --------- Co-authored-by: Rafael Silva <xfalcox@gmail.com>
24 lines
401 B
Ruby
24 lines
401 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
module Completions
|
|
module Dialects
|
|
class Fake < Dialect
|
|
class << self
|
|
def can_translate?(model_name)
|
|
model_name == "fake"
|
|
end
|
|
end
|
|
|
|
def tokenizer
|
|
DiscourseAi::Tokenizer::OpenAiTokenizer
|
|
end
|
|
|
|
def translate
|
|
""
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|