fireflymoon 在 gemini-cli 怎么才能对接公益站? 中发帖
gemini-cli 用 cc-switch 连薄荷、WONG、That、Anyrouter 都没连上 🤣
例如薄荷:
环境变量 (.env)
GOOGLE_GEMINI_BASE_URL=https://xxxx.xx
GEMINI_API_KEY=sk-x
GEMINI_MODEL=gemini-3-pro-high
配置文件 (config.json)
{
"general": {
"previewFeatures": true
},
"security": {
"auth": {
"selectedType": "gemini-api-key"
}
}
}
控制台
✕ [API Error: {"error":{"code":"","message":"无效的令牌 (request id:
2025121421...