diff --git a/lib/chroma/api_operations/request.rb b/lib/chroma/api_operations/request.rb index 7d03e62..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["CHROMA_SERVER_AUTHN_CREDENTIALS"] + request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) request end end