lib/quick_openai.rb in quick_openai-0.1.1 vs lib/quick_openai.rb in quick_openai-0.1.2
- old
+ new
@@ -8,10 +8,10 @@
module QuickOpenAI
class Error < StandardError; end
class << self
def client
- OpenAI::Client.new
+ OpenAI::Client.new(access_token: ENV["OPENAI_ACCESS_TOKEN"])
end
def fetch_response_from_client
ensure_access_token!