Class: Rasti::AI::OpenRouter::Provider
- Inherits:
-
Rasti::AI::OpenAI::Provider
- Object
- Provider
- Rasti::AI::OpenAI::Provider
- Rasti::AI::OpenRouter::Provider
- Defined in:
- lib/rasti/ai/open_router/provider.rb
Constant Summary
Constants inherited from Rasti::AI::OpenAI::Provider
Rasti::AI::OpenAI::Provider::THINKING_LEVELS
Constants inherited from Provider
Provider::ALIASES, Provider::MODULES
Instance Attribute Summary
Attributes inherited from Provider
Instance Method Summary collapse
Methods inherited from Rasti::AI::OpenAI::Provider
Methods inherited from Provider
build, #build_client, #create_assistant, #generate_text, #initialize, names, #parse_usage
Constructor Details
This class inherits a constructor from Rasti::AI::Provider
Instance Method Details
#base_url ⇒ Object
18 19 20 |
# File 'lib/rasti/ai/open_router/provider.rb', line 18 def base_url 'https://openrouter.ai/api/v1' end |
#default_api_key ⇒ Object
14 15 16 |
# File 'lib/rasti/ai/open_router/provider.rb', line 14 def default_api_key Rasti::AI.openrouter_api_key end |
#default_model ⇒ Object
10 11 12 |
# File 'lib/rasti/ai/open_router/provider.rb', line 10 def default_model Rasti::AI.openrouter_default_model end |
#name ⇒ Object
6 7 8 |
# File 'lib/rasti/ai/open_router/provider.rb', line 6 def name :open_router end |