Module: RubyCoded::Auth::Providers::Anthropic

Defined in:
lib/ruby_coded/auth/providers/anthropic.rb

Overview

Anthropic provider’s configuration

Class Method Summary collapse

Class Method Details

.auth_methodsObject



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_urlObject



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_nameObject



8
9
10
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 8

def self.display_name
  "Anthropic"
end

.key_patternObject



22
23
24
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 22

def self.key_pattern
  /\Ask-ant-/
end

.ruby_llm_keyObject



26
27
28
# File 'lib/ruby_coded/auth/providers/anthropic.rb', line 26

def self.ruby_llm_key
  :anthropic_api_key
end