from mmengine.config import read_base

# ⚠️  import 语句必须放在 read_base() 里，才能正确解析为列表/字典
with read_base():
    from opencompass.configs.models.openai.myopenai import models as openai_models
    from opencompass.configs.datasets.cmmlu.cmmlu_gen import cmmlu_datasets

# 展平为普通列表，供 OpenCompass 调用
models   = [*openai_models]
datasets = [*cmmlu_datasets]

# 如需自定义 runner / partitioner，可在此继续添加配置
