babaohuang / GeminiProChat

Minimal web UI for GeminiPro.
https://geminiprochat.com
MIT License
4.26k stars 12.34k forks source link

How to use the API_BASE_URL? #22

Closed siyehua closed 9 months ago

siyehua commented 9 months ago

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the bug

我使用vercel 创建好之后,使用会提示: 然后我在自己的仓库里,新建了一个文件.env,在里面写:User location is not supported for the API use. API_BASE_URL=https://google-genmini-pro.vercel.app/ 然后回到 vercel ,发现它自己重新构建了,构建完成后,仍然提示:User location is not supported for the API use.

What prompt did you enter?

No response

Console Logs

No response

Participation

babaohuang commented 9 months ago

这里 自己部署一个gemini proxy,然后把部署好的域名填到API_BASE_URL,填好环境变量后要redeploy一下才生效

siyehua commented 9 months ago

我就是用了你说的这个,在设置里加了:

image

然后重新构建,构建之后提示:

image

然后我看请求也没发错,就是我设置的这个:

image
siyehua commented 9 months ago

@babaohuang

babaohuang commented 9 months ago

我就是用了你说的这个,在设置里加了: image 然后重新构建,构建之后提示:

image

然后我看请求也没发错,就是我设置的这个: image

不是这样,你看一下文档的说明 ,是要在vercel上部署另外一个proxy,然后API_BASE_URL填入这个部署好的proxy的域名。