mindcraft icon indicating copy to clipboard operation
mindcraft copied to clipboard

Support to gemini-2.0-pro-exp-02-05

Open wisamidris77 opened this issue 10 months ago • 4 comments

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.

wisamidris77 avatar Feb 16 '25 14:02 wisamidris77

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

Lovre-P avatar Mar 02 '25 22:03 Lovre-P

i have the same issue somebody help me !

Edcaaaa4gy53 avatar Mar 13 '25 10:03 Edcaaaa4gy53

Based on #423, support for experimental models won't be added

Sweaterdog avatar Mar 13 '25 13:03 Sweaterdog

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

Shroototem avatar Apr 02 '25 19:04 Shroototem

This model has now been deprecated.

uukelele-scratch avatar Sep 23 '25 08:09 uukelele-scratch