Open dario-digregorio opened 1 month ago
I was struggling with the same issue today. Not only this, but it affects all the other functions, they all started to fail because of memory limit.
For now, the solution was to configureGenKit inside the trigger function and increase that function memory.
Vertexai plugin has grown in size recently, so it's not too surprising that it's memory hungry. That said, I have some ideas how to improve this -- we can break up the vertexAI plugin into multiple plugins. Specifically the features with non-core deps (like anthropic and llama3.1 model support).
I guess this needs some planning on what exactly we need to do, before i start? @pavelgj
Describe the bug When I add the vertexAI plugin to genkit I am unable to deploy my cloud function triggers (Firestore document trigger). I get the error
Memory limit of 256 MiB exceeded with 280 MiB used
. Only increasing the memory or removing the vertexAI plugin fixes the problem. So I am wondering way the memory increases so high.To Reproduce add this configuration:
add this cloud function trigger:
run a deploy:
Expected behavior I should be able deploy the functions because I just use a different model API
Screenshots If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):
** Node version