import yaml

config_path = "/home/multica/.hermes/config.yaml"

with open(config_path, "r") as f:
    config = yaml.safe_load(f)

# 更新 custom_providers 中的 minimaxio，添加一个别名模型
for provider in config["custom_providers"]:
    if provider["name"] == "minimaxio":
        provider["models"] = ["MiniMax-M3", "M3"]
        break

# 写回配置文件
with open(config_path, "w") as f:
    yaml.dump(config, f, default_flow_style=False, allow_unicode=True)

print("Added M3 model alias to minimaxio provider")
