Class: Contai::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/contai/configuration.rb', line 5

def initialize
  @default_provider = :http
  @default_template = "Generate content based on: {{prompt}}"
  @timeout = 30
  @default_headers = { "Content-Type" => "application/json" }
end

Instance Attribute Details

#default_headersObject

Returns the value of attribute default_headers.



3
4
5
# File 'lib/contai/configuration.rb', line 3

def default_headers
  @default_headers
end

#default_providerObject

Returns the value of attribute default_provider.



3
4
5
# File 'lib/contai/configuration.rb', line 3

def default_provider
  @default_provider
end

#default_templateObject

Returns the value of attribute default_template.



3
4
5
# File 'lib/contai/configuration.rb', line 3

def default_template
  @default_template
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/contai/configuration.rb', line 3

def timeout
  @timeout
end