anx-reader icon indicating copy to clipboard operation
anx-reader copied to clipboard

AI设置问题: Gemini的API key测试无法通过。

Open zonrghua88 opened this issue 9 months ago • 7 comments

Gemini免费的API key测试无法通过。注:Gemini API key在其他AI工具中使用正常。 AI设置中,增加Gemini的URL和模型选择。 另外,建议增加本地ollama 模型。

zonrghua88 avatar Feb 25 '25 13:02 zonrghua88

gemini 自定义URL将在下个版本支持

报错有什么提示呢?

目前来看,最大的可能性是网络问题,有部分用户反馈更换网络环境能够解决问题

Anxcye avatar Feb 26 '25 04:02 Anxcye

测试提示: 测试 Request failed: GeminiException => The connection errored: 信号灯超时时间已到 This indicates an error which most likely cannot be solved by the library. Status Code: -1 建议增加OpenAI兼容模式,类似cherry studio 这些都不是问题。应该不是网络问题。

发件人:Anxcye @.> 发送时间:2025年2月26日(星期三) 12:00 @.> 抄 送:zhang @.>; @.> 主 题:Re: [Anxcye/anx-reader] AI设置问题: Gemini的API key测试无法通过。 (Issue #119) gemini 自定义URL将在下个版本支持 报错有什么提示呢? 目前来看,最大的可能性是网络问题,有部分用户反馈更换网络环境能够解决问题 — Reply to this email directly, view it on GitHub <https://github.com/Anxcye/anx-reader/issues/119#issuecomment-2683835322 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKMUQ5QIHKJOXE7N4J3KSK32RU37JAVCNFSM6AAAAABX2T24Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBTHAZTKMZSGI >. You are receiving this because you authored the thread.Message ID: @.> Anxcye left a comment (Anxcye/anx-reader#119) <https://github.com/Anxcye/anx-reader/issues/119#issuecomment-2683835322 > gemini 自定义URL将在下个版本支持 报错有什么提示呢? 目前来看,最大的可能性是网络问题,有部分用户反馈更换网络环境能够解决问题 — Reply to this email directly, view it on GitHub <https://github.com/Anxcye/anx-reader/issues/119#issuecomment-2683835322 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKMUQ5QIHKJOXE7N4J3KSK32RU37JAVCNFSM6AAAAABX2T24Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBTHAZTKMZSGI >. You are receiving this because you authored the thread.Message ID: @.>

zonrghua88 avatar Feb 26 '25 06:02 zonrghua88

可以尝试下新版本的,修改了gemini api的格式

Anxcye avatar Mar 02 '25 10:03 Anxcye

正确配置gemini api key还是有问题啊。这个配置在cherry studio一直使用,测试都是通过的,但在anx reader测试出现问题,问题如下: 测试 Request failed:DioException[connection error]:The connection errored:信号灯超时时间已到This indicates an error which most likely cannot be solved by the library.Error:SocketException:信号灯超时时间已到(OS Error:信号灯超时时间已到errno 121),address generativelanguage.googleapis.com,port 54439

发件人:Anxcye @.> 发送时间:2025年3月2日(星期日) 18:10 @.> 抄 送:zhang @.>; @.> 主 题:Re: [Anxcye/anx-reader] AI设置问题: Gemini的API key测试无法通过。 (Issue #119) 可以尝试下新版本的,修改了gemini api的格式 — Reply to this email directly, view it on GitHub <https://github.com/Anxcye/anx-reader/issues/119#issuecomment-2692658166 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKMUQ5SEYX5LVYS2FFRVWP32SLKJ3AVCNFSM6AAAAABX2T24Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGY2TQMJWGY >. You are receiving this because you authored the thread.Message ID: @.> Anxcye left a comment (Anxcye/anx-reader#119) <https://github.com/Anxcye/anx-reader/issues/119#issuecomment-2692658166 > 可以尝试下新版本的,修改了gemini api的格式 — Reply to this email directly, view it on GitHub <https://github.com/Anxcye/anx-reader/issues/119#issuecomment-2692658166 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKMUQ5SEYX5LVYS2FFRVWP32SLKJ3AVCNFSM6AAAAABX2T24Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGY2TQMJWGY >. You are receiving this because you authored the thread.Message ID: @.>

zonrghua88 avatar Mar 02 '25 12:03 zonrghua88

Same problem. Same feedback.

freer123 avatar Mar 04 '25 07:03 freer123

我这边按最新版测试,是没问题的,网络问题一定要自己搞定。

tabortao avatar Mar 05 '25 08:03 tabortao

这看起来是网络问题,同样的报错出现在其他地方,https://github.com/KRTirtho/spotube/issues/1982 。看起来是代理设置的问题,或许你可以试试其他代理软件,我目前没有遇到这个问题

Anxcye avatar Mar 13 '25 09:03 Anxcye

🔒 This issue has been locked because it has been closed for 30 days.

此 issue 已被锁定,因为它已关闭 30 天。

If you believe this issue should be reopened, please create a new issue and reference this one.

如果您认为此 issue 应该重新打开,请创建新的 issue 并引用此问题。

github-actions[bot] avatar Sep 06 '25 01:09 github-actions[bot]