Class: AltText::LLMRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/alt_text/llm_registry.rb

Constant Summary collapse

LLM_MAP =
{
  'default' => 'anthropic.claude-3-5-sonnet-20240620-v1:0',
  'sonnet3.51' => 'anthropic.claude-3-5-sonnet-20240620-v1:0',
  'sonnet3.52' => 'anthropic.claude-3-5-sonnet-20241022-v2:0',
  'sonnet3.571' => 'us.anthropic.claude-3-7-sonnet-20250219-v1:0',
  'novapro' => 'us.amazon.nova-pro-v1:0'
}.freeze

Class Method Summary collapse

Class Method Details

.availableObject



17
18
19
# File 'lib/alt_text/llm_registry.rb', line 17

def self.available
  LLM_MAP.keys
end

.resolve(key) ⇒ Object



13
14
15
# File 'lib/alt_text/llm_registry.rb', line 13

def self.resolve(key)
  LLM_MAP[key] or raise ArgumentError, "Unsupported LLM: #{key}"
end