Module: RubyCoded::Auth::Providers::Anthropic
- Defined in:
- lib/ruby_coded/auth/providers/anthropic.rb
Overview
Anthropic provider’s configuration
Class Method Summary collapse
- .auth_methods ⇒ Object
- .console_url ⇒ Object
- .display_name ⇒ Object
- .key_pattern ⇒ Object
- .ruby_llm_key ⇒ Object
Class Method Details
.auth_methods ⇒ Object
12 13 14 15 16 |
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 12 def self.auth_methods [ { key: :api_key, label: "With an Anthropic API key (requires API credits at console.anthropic.com)" } ] end |
.console_url ⇒ Object
18 19 20 |
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 18 def self.console_url "https://console.anthropic.com/settings/keys" end |
.display_name ⇒ Object
8 9 10 |
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 8 def self.display_name "Anthropic" end |
.key_pattern ⇒ Object
22 23 24 |
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 22 def self.key_pattern /\Ask-ant-/ end |
.ruby_llm_key ⇒ Object
26 27 28 |
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 26 def self.ruby_llm_key :anthropic_api_key end |