in evaluations/genai_evaluation.py [0:0]
def get_rest_api_config():
"""
Load environment variables required for REST API configuration.
Returns:
tuple: (orchestrator_endpoint, function_key)
"""
orchestrator_endpoint = os.getenv('ORCHESTRATOR_ENDPOINT')
function_key = os.getenv('FUNCTION_KEY')
if not orchestrator_endpoint:
logger.error("ORCHESTRATOR_ENDPOINT not found in environment variables.")
sys.exit(1)
if not function_key:
logger.error("FUNCTION_KEY not found in environment variables.")
sys.exit(1)
return orchestrator_endpoint, function_key