Support to gemini-2.0-pro-exp-02-05
I really need support for gemini-2.0-pro-exp-02-05 as for now it says
Example: say hi to john_goodman
Example: derg: (FROM OTHER BOT)Thanks, see you later!
Awaiting Google API response...
Unhandled Rejection at: {
promise: Object [Promise] {},
reason: [GoogleGenerativeAIError: [404 Not Found] models/gemini-2.0-pro-exp-02-05 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.
at makeRequest (file:///C:/Users/wisam/Desktop/mindcraft/node_modules/@google/generative-ai/dist/index.mjs:210:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async generateContent (file:///C:/Users/wisam/Desktop/mindcraft/node_modules/@google/generative-ai/dist/index.mjs:534:22)
at async Gemini.sendRequest (file:///C:/Users/wisam/Desktop/mindcraft/src/models/gemini.js:68:24)
at async Prompter.promptConvo (file:///C:/Users/wisam/Desktop/mindcraft/src/models/prompter.js:284:30)
at async Agent.handleMessage (file:///C:/Users/wisam/Desktop/mindcraft/src/agent/agent.js:266:23)
at async Agent._setupEventHandlers (file:///C:/Users/wisam/Desktop/mindcraft/src/agent/agent.js:174:13)],
stack: 'Error: [404 Not Found] models/gemini-2.0-pro-exp-02-05 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.\n' +
' at makeRequest (file:///C:/Users/wisam/Desktop/mindcraft/node_modules/@google/generative-ai/dist/index.mjs:210:19)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
' at async generateContent (file:///C:/Users/wisam/Desktop/mindcraft/node_modules/@google/generative-ai/dist/index.mjs:534:22)\n' +
' at async Gemini.sendRequest (file:///C:/Users/wisam/Desktop/mindcraft/src/models/gemini.js:68:24)\n' +
' at async Prompter.promptConvo (file:///C:/Users/wisam/Desktop/mindcraft/src/models/prompter.js:284:30)\n' +
' at async Agent.handleMessage (file:///C:/Users/wisam/Desktop/mindcraft/src/agent/agent.js:266:23)\n' +
' at async Agent._setupEventHandlers (file:///C:/Users/wisam/Desktop/mindcraft/src/agent/agent.js:174:13)'
}
SES_UNHANDLED_REJECTION: [GoogleGenerativeAIError: [404 Not Found] models/gemini-2.0-pro-exp-02-05 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.
at makeRequest (file:///C:/Users/wisam/Desktop/mindcraft/node_modules/@google/generative-ai/dist/index.mjs:210:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async generateContent (file:///C:/Users/wisam/Desktop/mindcraft/node_modules/@google/generative-ai/dist/index.mjs:534:22)
at async Gemini.sendRequest (file:///C:/Users/wisam/Desktop/mindcraft/src/models/gemini.js:68:24)
at async Prompter.promptConvo (file:///C:/Users/wisam/Desktop/mindcraft/src/models/prompter.js:284:30)
at async Agent.handleMessage (file:///C:/Users/wisam/Desktop/mindcraft/src/agent/agent.js:266:23)
at async Agent._setupEventHandlers (file:///C:/Users/wisam/Desktop/mindcraft/src/agent/agent.js:174:13)]
Client disconnected
Agent process exited with code 1 and signal null
Agent process ./andy.json exited too quickly and will not be restarted.
I have the same issue and i'm unable to resolve it... EDIT: So yeah i fixed it, this might help you: https://cloud.google.com/vertex-ai/generative-ai/docs/samples/generativeaionvertexai-gemini-youtube-video-summarization
i have the same issue somebody help me !
Based on #423, support for experimental models won't be added
When using the newer models I've found that removing the current generative-ai package and installing the latest fixes the issue.
npm r @google/generative-ai
npm i @google/generative-ai
This model has now been deprecated.