GeminiProChat icon indicating copy to clipboard operation
GeminiProChat copied to clipboard

404 Not Found,无法使用模型

Open yxhy1010 opened this issue 7 months ago • 3 comments

What operating system are you using?

window

What browser are you using?

Edge

Describe the bug

Error [GoogleGenerativeAI Error]: Error fetching from [404 Not Found] models/gemini-pro is not found for API version v1, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.

What prompt did you enter?

No response

Console Logs

No response

Participation

  • [ ] I am willing to submit a pull request for this issue.

yxhy1010 avatar Jun 02 '25 14:06 yxhy1010

您好,同样的问题,同样的错误,恳请尽快修复,感谢作者。 Error [GoogleGenerativeAI Error]: Error fetching from [404 Not Found] models/gemini-pro is not found for API version v1, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.

yanggis avatar Jun 13 '25 14:06 yanggis

The v1 model endpoint in the API was probably deprecated. There's an open pull request to update to 2.0 from months ago but it looks like there is no active maintainer of this project.

krMaynard avatar Jul 09 '25 04:07 krMaynard

已更新,以后谷歌有更新模型也可以直接在环境变量GEMINI_MODEL_NAME中自行设置 , @yxhy1010 @yanggis @krMaynard

babaohuang avatar Jul 22 '25 01:07 babaohuang