You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot convert undefined or null to object at Function.keys at at toGeminiTool (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js
#2214
Open
Gopinathp opened this issue
Mar 2, 2025
· 0 comments
Describe the bug
When running gemini models, I am getting the follow error.
Error processing AI message: TypeError: Cannot convert undefined or null to object\n at Function.keys ()\n at convertSchemaProperty (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:533:12)\n at /workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:534:31\n at Array.forEach ()\n at convertSchemaProperty (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:533:38)\n at toGeminiTool (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:330:17)\n at Array.map ()\n at /workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:627:84\n at /workspace/node_modules/@genkit-ai/ai/lib/model.js:290:14\n at /workspace/node_modules/@genkit-ai/core/lib/action.js:204:62 {\n traceId: '54cd40ba57b57c6aa5dd334d7776af0a'\n}",
To Reproduce
I have migrated my project from 0.5 to .9 to 1.0.5; I am getting this error only when I use the gemini model. When I switch to any other model like openAI, there is no error.
** Node version
v18.12.1
Additional context
Working with other models from other community plugins.
The text was updated successfully, but these errors were encountered:
Gopinathp
changed the title
[JS]
TypeError: Cannot convert undefined or null to object at Function.keys at at toGeminiTool (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js
Mar 4, 2025
Describe the bug
When running gemini models, I am getting the follow error.
Error processing AI message: TypeError: Cannot convert undefined or null to object\n at Function.keys ()\n at convertSchemaProperty (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:533:12)\n at /workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:534:31\n at Array.forEach ()\n at convertSchemaProperty (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:533:38)\n at toGeminiTool (/workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:330:17)\n at Array.map ()\n at /workspace/node_modules/@genkit-ai/vertexai/lib/gemini.js:627:84\n at /workspace/node_modules/@genkit-ai/ai/lib/model.js:290:14\n at /workspace/node_modules/@genkit-ai/core/lib/action.js:204:62 {\n traceId: '54cd40ba57b57c6aa5dd334d7776af0a'\n}",
To Reproduce
I have migrated my project from 0.5 to .9 to 1.0.5; I am getting this error only when I use the gemini model. When I switch to any other model like openAI, there is no error.
** Node version
v18.12.1
Additional context
Working with other models from other community plugins.
The text was updated successfully, but these errors were encountered: