Class: OxAiWorkers::Configuration
- Inherits:
-
Object
- Object
- OxAiWorkers::Configuration
- Defined in:
- lib/ox-ai-workers.rb
Instance Attribute Summary collapse
-
#access_token_anthropic ⇒ Object
Returns the value of attribute access_token_anthropic.
-
#access_token_deepseek ⇒ Object
Returns the value of attribute access_token_deepseek.
-
#access_token_gemini ⇒ Object
Returns the value of attribute access_token_gemini.
-
#access_token_openai ⇒ Object
Returns the value of attribute access_token_openai.
-
#access_token_stability ⇒ Object
Returns the value of attribute access_token_stability.
-
#access_token_wolfram ⇒ Object
Returns the value of attribute access_token_wolfram.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#wait_for_complete ⇒ Object
Returns the value of attribute wait_for_complete.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/ox-ai-workers.rb', line 66 def initialize @max_tokens = DEFAULT_MAX_TOKEN @wait_for_complete = true @access_token_deepseek = nil @access_token_openai = nil @access_token_stability = nil @access_token_wolfram = nil @access_token_anthropic = nil @access_token_gemini = nil [Array, NilClass, String, Symbol, Hash].each do |c| c.send(:include, OxAiWorkers::PresentCompat) unless c.method_defined?(:present?) end String.include OxAiWorkers::CamelizeCompat unless String.method_defined?(:camelize) end |
Instance Attribute Details
#access_token_anthropic ⇒ Object
Returns the value of attribute access_token_anthropic.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def access_token_anthropic @access_token_anthropic end |
#access_token_deepseek ⇒ Object
Returns the value of attribute access_token_deepseek.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def access_token_deepseek @access_token_deepseek end |
#access_token_gemini ⇒ Object
Returns the value of attribute access_token_gemini.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def access_token_gemini @access_token_gemini end |
#access_token_openai ⇒ Object
Returns the value of attribute access_token_openai.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def access_token_openai @access_token_openai end |
#access_token_stability ⇒ Object
Returns the value of attribute access_token_stability.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def access_token_stability @access_token_stability end |
#access_token_wolfram ⇒ Object
Returns the value of attribute access_token_wolfram.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def access_token_wolfram @access_token_wolfram end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def max_tokens @max_tokens end |
#wait_for_complete ⇒ Object
Returns the value of attribute wait_for_complete.
63 64 65 |
# File 'lib/ox-ai-workers.rb', line 63 def wait_for_complete @wait_for_complete end |