Jazee6 / cloudflare-ai-web

支持Gemini Pro / Cloudflare Workers AI / ChatGPT的融合Web平台
https://ai.jaze.top
Apache License 2.0
1.91k stars 481 forks source link

部署完成但报错了。 #49

Closed gallexy closed 4 months ago

gallexy commented 4 months ago

Error 1101 Ray ID: 8885b5d9562815fb • 2024-05-23 14:24:34 UTC

Worker threw exception

What happened?

You've requested a page on a website (gateway.ai.cloudflare.com) that is on the Cloudflare network. An unknown error occurred while rendering the page.

What can I do?

If you are the owner of this website:
you should login to Cloudflare and check the error logs for gateway.ai.cloudflare.com.

Jazee6 commented 4 months ago

我的也是 目前上面只有Gemini能用,Cloudflare AI全报错1101

能否提供详细的报错信息

AQLI21 commented 4 months ago

500类的报错,似乎是CF AI Getway Universal API的问题,在CF控制面板上直接访问我的API同样报错1101。 部署中使用Cloudflare AI的模型会报错Cloudflare1101错误的整个HTML。 同时我在CF控制面板也没有任何有关请求或Error的数据或日志。在CF的discord里留了言。。

Jazee6 commented 4 months ago

500类的报错,似乎是CF AI Getway Universal API的问题,在CF控制面板上直接访问我的API同样报错1101。 部署中使用Cloudflare AI的模型会报错Cloudflare1101错误的整个HTML。 同时我在CF控制面板也没有任何有关请求或Error的数据或日志。在CF的discord里留了言。。

部署在什么平台呢

AQLI21 commented 4 months ago

Vercel上按照大佬的Readme部署的

gallexy commented 4 months ago

我cloudflare上部署成了 . image

AQLI21 commented 4 months ago

刚刚研究了一下,原因似乎是因我的部署名称和Cloudflare AI Gateway 的API 采用了相同的名称导致的... 改了之后没问题了

gallexy commented 4 months ago

试了一下vercel也能成功,CF_TOKEN和CF_GATEWAY一定要设对, CF_GATEWAY是 https://gateway.ai.cloudflare.com/v1/8e26xxxxxxxxxxxxxxxxxxxxxxxxx/{GATEWAYID}