samqin (@samqinsh)zcf太重,一键切换批处理文件送上(切换kimi/glm/siliconflow/anyrouter/自定义) 中发帖

小白一个,zcf感觉还是很不错的,但是小白比较穷,靠着公益站体验cc,所以切换起来,改bashrc很麻烦。索性写个脚本,一键切换,偷个懒,各位大佬请用。有改善的,也分享一下。 
#!/bin/bash

# 定义服务商及其配置
declare -A PROVIDERS=(
["anyrouter"]="https://7a61fbe1b5f3.d93a09b6.top/"
["moonshot"]="https://api.moonshot.cn/anthropic"
["glm"]="https://open.bigmodel.cn/api/anthropic"
["siliconflow"]="https://api.siliconflow.cn/"
)

# 定义服务商对应的认证令牌(请替换为你的密钥)
declare -A AUTH_TOKENS=(...