Error occurs when selecting “Google Generative AI” as Model Provider in Agents component
Bug Description
When I select “Google Generative AI” as the Model Provider in the Agents component, an error occurs and the component fails to load properly.
"Error getting model names: 400 API key not valid. Please pass a valid API key. [reason: "API_KEY_INVALID"\ndomain: "googleapis.com"\nmetadata {\n key: "service"\n value: "generativelanguage.googleapis.com"\n}\n, locale: "en-US"\nmessage: "API key not valid. Please pass a valid API key."\n]"
Reproduction
Steps to Reproduce:
- Navigate to the Agents component.
- Click on the Model Provider dropdown.
- Select “Google Generative AI”.
- Observe the error.
Expected behavior
The component should load without error and allow further configuration of the Google Generative AI model.
Actual Behavior:
An error occurs immediately upon selection, and the UI does not respond as expected.
Who can help?
@Cristhianzl @lucaseduoli @igorrCarvalho
Operating System
Ubuntu
Langflow Version
1.4.2
Python Version
None
Screenshot
Flow File
No response
https://github.com/langflow-ai/langflow/pull/9495