diff --git a/Gemfile.lock b/Gemfile.lock index 968f8ed..af8da69 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -101,6 +101,7 @@ GEM PLATFORMS arm64-darwin-22 + x86_64-darwin-22 x86_64-linux DEPENDENCIES @@ -114,4 +115,4 @@ DEPENDENCIES webmock (~> 3.18, >= 3.18.1) BUNDLED WITH - 2.4.12 + 2.4.19 diff --git a/lib/chroma/api_operations/request.rb b/lib/chroma/api_operations/request.rb index af924bd..61e8e99 100644 --- a/lib/chroma/api_operations/request.rb +++ b/lib/chroma/api_operations/request.rb @@ -118,7 +118,7 @@ def execute_request(method, url, params = {}, options = {}) request.content_type = "application/json" request.body = params.to_json if params.size > 0 request.basic_auth(uri.user, uri.password) if !uri.user.nil? - + request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) request end end