Method: ChatGpt2023#initialize
- Defined in:
- lib/chatgpt2023.rb
#initialize(apikey: nil, attempts: 1, debug: false) ⇒ ChatGpt2023
Returns a new instance of ChatGpt2023.
44 45 46 47 48 49 50 51 52 |
# File 'lib/chatgpt2023.rb', line 44 def initialize(apikey: nil, attempts: 1, debug: false) @apiurl = "https://api.openai.com/v1" raise 'You must supply an API key!' unless apikey @apikey, @attempts, @debug = apikey, attempts, debug @assistant_recent = nil end |