Skip to content

Commit

Permalink
Add placeholder openai token for github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
penguoir committed Nov 15, 2023
1 parent 00c8b06 commit d1ba58d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
puts "Did not load .env file"
end

ActiveCortex.config.openai_access_token = ENV.fetch("OPENAI_ACCESS_TOKEN")
openai_access_token = ENV.fetch("OPENAI_ACCESS_TOKEN") { "openai-placeholder" }
ActiveCortex.config.openai_access_token = openai_access_token

VCR.configure do |config|
config.cassette_library_dir = "spec/vcr_cassettes"
config.hook_into :webmock
config.filter_sensitive_data("<OPENAI_ACCESS_TOKEN>") { ENV.fetch("OPENAI_ACCESS_TOKEN") }
config.filter_sensitive_data("<OPENAI_ACCESS_TOKEN>") { openai_access_token }
config.default_cassette_options = {
match_requests_on: [:method, :uri, :body],
drop_unused_requests: true
Expand Down

0 comments on commit d1ba58d

Please sign in to comment.