async def METHOD_NAME(event):
    "Generate a GPT response using the provided text using Openai Api"
    text = event.pattern_match.group(1)
    reply = await event.get_reply_message()
    model_text = "**Available models:**\n\n"
    chat_id = event.chat_id
    # Flag to generate edited message
    if "-e" in text:
        text = text.replace("-e", "").strip()
        if not reply or not reply.text or not text:
            return await edit_delete(
                event,
                "__Reply to message & pass the instruction message along with flag.__",
            )
        await edit_or_reply(event, "`Generating edited text...`")
        response = generate_edited_response(reply.text, text)
        return await edit_or_reply(event, response)
    elif "-m" in text:
        flag = text.replace("-m", "").strip()
        if not flag or flag not in MODELS:
            for index, name in enumerate(MODELS, 1):
                model_text += f"**{index}.** `{name}`\n"
            return await edit_delete(event, model_text, 50)
        addgvar("CHAT_MODEL", flag)
        return await edit_delete(event, f"__Chat model changed to : **{flag}**__")
    elif "-s" in text:
        flag = text.replace("-s", "").strip()
        if not flag:
            return await edit_delete(
                event, "__Pass the system message along with flag.__"
            )
        addgvar("SYSTEM_MESSAGE", flag)
        del_convo(chat_id)
        return await edit_delete(event, f"__System message changed to :__\n\n`{flag}`")
    elif "-ds" in text:
        if SYSTEM_MESSAGE := gvarstatus("SYSTEM_MESSAGE") or None:
            del_convo(chat_id)
            delgvar("SYSTEM_MESSAGE")
            return await edit_delete(event, "__System message cleared.__")
        return await edit_delete(event, "__There's no system message set for GPT.__")
    elif "-dc" in text:
        response = del_convo(chat_id, True)
        return await edit_delete(event, response)
    # Check if text given else take text from reply message
    if not text and reply:
        text = reply.text
    if not text:
        return await edit_delete(event, "**ಠ∀ಠ Gimmi text**")
    catevent = await edit_or_reply(event, "__Generating answer...__")
    gpt_response = generate_gpt_response(text, chat_id)
    await edit_or_reply(catevent, gpt_response)