Class: OxAiWorkers::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ox-ai-workers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_anthropicObject

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_deepseekObject

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_geminiObject

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_openaiObject

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_stabilityObject

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_wolframObject

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_tokensObject

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_completeObject

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