...= "exported_chats"

def load_conversations(path):
    with open(path, "r", encoding="utf-8") as f:
        data = json.load(f)

    # Manche Exporte haben {"conversations": [...]}, andere direkt eine Liste
    if isinstance(data, dict) and "conversations" in data:
        return data["conversations"]
    elif isinstance(data, list):
        return data
    else:
        raise ValueError("Unerwartiges J...