def METHOD_NAME():
    st_time = time.time()
    contexts = request.json.get("dialog_contexts", [])
    prompts = request.json.get("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]
    if len(contexts) > 0 and len(prompts) == 0:
        prompts = [""] * len(contexts)
    anthropic_api_keys = request.json.get("anthropic_api_keys", [])
    try:
        responses = []
        for context, anthropic_api_key, prompt, config in zip(contexts, anthropic_api_keys, prompts, configs):
            curr_responses = []
            outputs = generate_responses(context, anthropic_api_key, prompt, config)
            for response in outputs:
                if len(response) >= 2:
                    curr_responses += [response]
                else:
                    curr_responses += [""]
            responses += [curr_responses]
    except Exception as exc:
        logger.exception(exc)
        sentry_sdk.capture_exception(exc)
        responses = [[""]] * len(contexts)
    logger.info(f"anthropic-api result: {responses}")
    total_time = time.time() - st_time
    logger.info(f"anthropic-api exec time: {total_time:.3f}s")
    return jsonify(responses)