Skip to content

[Bug] gemini翻译API无法调用 #1340

@theSecondGingerCat

Description

@theSecondGingerCat

Is there an existing issue for this?

  • I have searched the existing issues

Have you checked the FAQ (#6)?

  • I have checked the FAQ

Are you using the latest Zotero and the latest plugin?

  • I have confirmed I'm using the latest Zotero and the latest plugin

Environment

  • OS: Windows 11 23H2
  • Zotero Version: 7.0.27
  • Plugin Version: 2.3.14

Describe the bug

配置gemini密钥后无法调用并翻译,报错:

[请求错误]
此翻译服务不可用,可能是密钥错误,也可能是请求过快。
可以尝试其他翻译服务,或者来此查看相关回答:
https://zotero.yuque.com/staff-gkhviy/pdf-trans/age09f

请注意,这些错误与 Zotero 和本翻译插件无关,由该翻译服务引起: Gemini

Error: HTTP POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:streamGenerateContent?alt=sse& failed with status code 404:

{
"error": {
"code": 404,
"message": "models/gemini-1.5-flash-latest is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}

Debug Output

bug (1).txt

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions