Class: CompletionKit::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_tokenObject

Returns the value of attribute api_token.



10
11
12
# File 'lib/completion_kit.rb', line 10

def api_token
  @api_token
end

#auth_strategyObject

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_thresholdObject

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_modelObject

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_thresholdObject

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_endpointObject

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_keyObject

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_keyObject

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

#passwordObject

Returns the value of attribute password.



10
11
12
# File 'lib/completion_kit.rb', line 10

def password
  @password
end

#usernameObject

Returns the value of attribute username.



10
11
12
# File 'lib/completion_kit.rb', line 10

def username
  @username
end