Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Gemini 在 Cloudflare Workers 上无法请求 #264

Open
tujiangh opened this issue Jul 25, 2024 · 4 comments
Open

[BUG] Gemini 在 Cloudflare Workers 上无法请求 #264

tujiangh opened this issue Jul 25, 2024 · 4 comments

Comments

@tujiangh
Copy link

大佬,问一下哈,Gemini问了问题后回复在当前地区不可用怎么办啊,谢谢

@TBXark
Copy link
Owner

TBXark commented Jul 25, 2024

没有办法呢,Cloudflare workers请求Gemini就是会报错,只能说部署在vercel或者其他平台

@TBXark TBXark changed the title [BUG] [BUG] Gemini 在 Cloudflare Workers 上无法请求 Jul 25, 2024
@TBXark
Copy link
Owner

TBXark commented Jul 25, 2024

你可以试一下 cloudflare的ai网关 https://developers.cloudflare.com/ai-gateway/providers/google-ai-studio/

@jinjunliu
Copy link

jinjunliu commented Sep 11, 2024

我用Gemini遇到了这个报错:

Error: Please use a valid role: user, model.

我也是部署在Cloudflare workers,版本是:1cd65d7(9/4/2024, 7:29:31 AM)

这应该和楼主描述的”当前地区不可用“不是同一个问题吧?

@djx30103
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants