404 Not Found,无法使用模型
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.
您好,同样的问题,同样的错误,恳请尽快修复,感谢作者。 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.
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.
已更新,以后谷歌有更新模型也可以直接在环境变量GEMINI_MODEL_NAME中自行设置 , @yxhy1010 @yanggis @krMaynard