def METHOD_NAME():
    st_time = time.time()
    prompts = request.json.get("prompts", None)
    prompts = [] if prompts is None else prompts
    configs = request.json.get("configs", None)
    configs = [None] * len(prompts) if configs is None else configs
    configs = [DEFAULT_CONFIGS[PRETRAINED_MODEL_NAME_OR_PATH] if el is None else el for el in configs]
    anthropic_api_keys = request.json.get("anthropic_api_keys", [])
    try:
        responses = []
        for anthropic_api_key, prompt, config in zip(anthropic_api_keys, prompts, configs):
            context = ["hi", META_GOALS_PROMPT + f"\nPrompt: '''{prompt}'''\nResult:"]
            goals_for_prompt = generate_responses(context, anthropic_api_key, "", config)[0]
            logger.info(f"Generated goals: `{goals_for_prompt}` for prompt: `{prompt}`")
            responses += [goals_for_prompt]
    except Exception as exc:
        logger.info(exc)
        sentry_sdk.capture_exception(exc)
        responses = [""] * len(prompts)
    total_time = time.time() - st_time
    logger.info(f"anthropic-api generate_goals exec time: {total_time:.3f}s")
    return jsonify(responses)