Class: PolylingoChat::Translator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/polylingo_chat/translator/base.rb

Direct Known Subclasses

AnthropicClient, GeminiClient, OpenAIClient

Class Method Summary collapse

Class Method Details

.detect_language(text) ⇒ Object

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/polylingo_chat/translator/base.rb', line 4

def self.detect_language(text)
  raise NotImplementedError
end

.translate(text:, from:, to:, context:) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/polylingo_chat/translator/base.rb', line 8

def self.translate(text:, from:, to:, context:)
  raise NotImplementedError
end