Class: CompletionKit::Configuration
- Inherits:
-
Object
- Object
- CompletionKit::Configuration
- Defined in:
- lib/completion_kit.rb
Instance Attribute Summary collapse
-
#anthropic_api_key ⇒ Object
Returns the value of attribute anthropic_api_key.
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#auth_strategy ⇒ Object
Returns the value of attribute auth_strategy.
-
#high_quality_threshold ⇒ Object
Returns the value of attribute high_quality_threshold.
-
#judge_model ⇒ Object
Returns the value of attribute judge_model.
-
#medium_quality_threshold ⇒ Object
Returns the value of attribute medium_quality_threshold.
-
#ollama_api_endpoint ⇒ Object
Returns the value of attribute ollama_api_endpoint.
-
#ollama_api_key ⇒ Object
Returns the value of attribute ollama_api_key.
-
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/completion_kit.rb', line 12 def initialize @openai_api_key = ENV['OPENAI_API_KEY'] @anthropic_api_key = ENV['ANTHROPIC_API_KEY'] @ollama_api_key = ENV['OLLAMA_API_KEY'] @ollama_api_endpoint = ENV['OLLAMA_API_ENDPOINT'] @judge_model = "gpt-4.1" @high_quality_threshold = 4 @medium_quality_threshold = 3 end |
Instance Attribute Details
#anthropic_api_key ⇒ Object
Returns the value of attribute anthropic_api_key.
8 9 10 |
# File 'lib/completion_kit.rb', line 8 def anthropic_api_key @anthropic_api_key end |
#api_token ⇒ Object
Returns the value of attribute api_token.
10 11 12 |
# File 'lib/completion_kit.rb', line 10 def api_token @api_token end |
#auth_strategy ⇒ Object
Returns the value of attribute auth_strategy.
10 11 12 |
# File 'lib/completion_kit.rb', line 10 def auth_strategy @auth_strategy end |
#high_quality_threshold ⇒ Object
Returns the value of attribute high_quality_threshold.
9 10 11 |
# File 'lib/completion_kit.rb', line 9 def high_quality_threshold @high_quality_threshold end |
#judge_model ⇒ Object
Returns the value of attribute judge_model.
9 10 11 |
# File 'lib/completion_kit.rb', line 9 def judge_model @judge_model end |
#medium_quality_threshold ⇒ Object
Returns the value of attribute medium_quality_threshold.
9 10 11 |
# File 'lib/completion_kit.rb', line 9 def medium_quality_threshold @medium_quality_threshold end |
#ollama_api_endpoint ⇒ Object
Returns the value of attribute ollama_api_endpoint.
8 9 10 |
# File 'lib/completion_kit.rb', line 8 def ollama_api_endpoint @ollama_api_endpoint end |
#ollama_api_key ⇒ Object
Returns the value of attribute ollama_api_key.
8 9 10 |
# File 'lib/completion_kit.rb', line 8 def ollama_api_key @ollama_api_key end |
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
8 9 10 |
# File 'lib/completion_kit.rb', line 8 def openai_api_key @openai_api_key end |
#password ⇒ Object
Returns the value of attribute password.
10 11 12 |
# File 'lib/completion_kit.rb', line 10 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
10 11 12 |
# File 'lib/completion_kit.rb', line 10 def username @username end |