function getLiteLLMHeaders(contentType) {
  var headers = {};
  if (contentType) headers['Content-Type'] = contentType;
  var key = process.env.LITELLM_API_KEY || process.env.LITELLM_MASTER_KEY;
  if (key) headers.Authorization = 'Bearer ' + key;
  return headers;
}

function getLiteLLMAdminHeaders(contentType) {
  var headers = {};
  if (contentType) headers['Content-Type'] = contentType;
  var key = process.env.LITELLM_MASTER_KEY || process.env.LITELLM_API_KEY;
  if (key) headers.Authorization = 'Bearer ' + key;
  return headers;
}

module.exports = {
  getLiteLLMHeaders,
  getLiteLLMAdminHeaders
};
