module OpenAI::HTTP

def headers

def headers
  return azure_headers if OpenAI.configuration.api_type == :azure
  {
    "Content-Type" => "application/json",
    "Authorization" => "Bearer #{OpenAI.configuration.access_token}",
    "OpenAI-Organization" => OpenAI.configuration.organization_id
  }.merge(OpenAI.configuration.extra_headers)
end