Class: TranslationAPI::Provider::Gemini::Model
- Inherits:
-
Llm::Model
- Object
- Llm::Model
- TranslationAPI::Provider::Gemini::Model
show all
- Defined in:
- lib/translation_api/provider/gemini/model.rb
Constant Summary
collapse
- SUPPORTED_MODELS =
[
"gemini-3-pro-preview",
"gemini-2.5-pro",
"gemini-2.5-flash",
"gemini-2.5-flash-lite"
].freeze
Constants inherited
from Llm::Model
Llm::Model::MODEL_ERROR_MESSAGE
Instance Attribute Summary
Attributes inherited from Llm::Model
#name
Class Method Summary
collapse
Methods inherited from Llm::Model
#initialize
Class Method Details
.three_pro ⇒ Object
16
17
18
|
# File 'lib/translation_api/provider/gemini/model.rb', line 16
def self.three_pro
SUPPORTED_MODELS[0]
end
|
.two_five_flash ⇒ Object
24
25
26
|
# File 'lib/translation_api/provider/gemini/model.rb', line 24
def self.two_five_flash
SUPPORTED_MODELS[2]
end
|
.two_five_flash_lite ⇒ Object
28
29
30
|
# File 'lib/translation_api/provider/gemini/model.rb', line 28
def self.two_five_flash_lite
SUPPORTED_MODELS[3]
end
|
.two_five_pro ⇒ Object
20
21
22
|
# File 'lib/translation_api/provider/gemini/model.rb', line 20
def self.two_five_pro
SUPPORTED_MODELS[1]
end
|