Vertex AI plugin
I am following this: https://genkit.dev/docs/plugins/vertex-ai/#usage, which states that "[the vertexai] plugin also supports grounding Gemini text responses using Google Search or your own data." and gives this example:
I have:
generateOptions is then used in ai.generateStream(generateOptions);This is a bit different, but I'm using the VertexAi plugin with a supported model in a supported region and I have
to the config.
But:
I tried changing the
googleSearchRetrieval key to googleSearch and then google_search, but both yield "GoogleApiError: Invalid JSON payload received. Unknown name "googleSearch" at 'generation_config': Cannot find field.
" errors. Any idea what I might be doing wrong?