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平台的好像有问题,提示错误:TypeError: 'NoneType' object is not subscriptable #11

Open
lgf5090 opened this issue Jul 10, 2024 · 3 comments

Comments

@lgf5090
Copy link

lgf5090 commented Jul 10, 2024

groq和openai没有问题, 但是gemini会提示错误, 但是使用大佬的api地址确实成功的,测试了5次都是错误的。

Clip_2024-07-10_22-44-20

@ultrasev
Copy link
Owner

不好意思,最近有点忙,没来及关注,请问现在修好了吗?这个有可能是返回的结果为空导致的。

@thisiskx
Copy link

thisiskx commented Aug 2, 2024

gemini返回结果还是空,另外两个模型没问题的

@ultrasev
Copy link
Owner

ultrasev commented Aug 6, 2024

我测试了一下你的接口,觉得应该是本地 IP 的问题。虽然通过 CF 做了中转,但 CF 会根据请求者 IP 按就近原则转发请求,而有的地区不被 Google AI 支持,比如香港。
我本地切换到美区代理,然后用你的接口地址,就没有问题。 如下图所求,上面是香港代理,下面是使用美区代理:
image

我提供的地址通过 cloudflare 优选 IP 做了优化,不过也是部分地区支持,部分不支持。关于优选 IP ,你可以参考 https://github.com/XIU2/CloudflareSpeedTest

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

3 participants