2024最新一键搭建谷歌AI Gemini 平替chatgpt

461 阅读1分钟
  1. 申请 key: makersuite.google.com/app/apikey
  2. docker环境
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker
  1. 键部署geminiprochat 注意: xxxxxxxxxxxxxxxxx 替换成你自己的key
docker run --name geminiprochat --restart always -p 3030:3000 -itd -e GEMINI_API_KEY=xxxxxxxxxxxxxxxxx howie6879/geminiprochat:v0.1.0
  1. 其他参数参考

github.com/babaohuang/…

Name                | Description                                                                                                                                                                                       | Required |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `GEMINI_API_KEY`    | Your API Key for GEMINI. You can get it from [here](https://makersuite.google.com/app/apikey).                                                                                                    | **Yes**  |
| `API_BASE_URL`      | Custom base url for GEMINI API. Click [here](https://github.com/babaohuang/GeminiProChat?tab=readme-ov-file#solution-for-user-location-is-not-supported-for-the-api-use) to see when to use this. | No       |
| `HEAD_SCRIPTS`      | Inject analytics or other scripts before `</head>` of the page                                                                                                                                    | No       |
| `PUBLIC_SECRET_KEY` | Secret string for the project. Use for generating signatures for API calls                                                                                                                        | No       |
| `SITE_PASSWORD`     | Set password for site, support multiple password separated by comma. If not set, site will be public                                                                                              | No