Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] ChatGoogleVertexAI response with [object Object]

Open timur-nocodia opened this issue 1 year ago • 4 comments

Flowise 1.6.6

ChatGoogleGenerativeAi stop to work for me - region is not supported (my country is supported by the way) and I decided to use ChatGoogleVertexAi.

I can't get responce from ChatGoogleVertexAi node. I have no errors in GCC logs.

I used json object (copy - paste from json file) as for my credential.

Screenshot_1

timur-nocodia avatar Apr 27 '24 17:04 timur-nocodia

You cant "get" an API Key for Gemini if you are in an unsupported country, correct (the EU and UK), but you can definitely use it.

I got my api key on the Gemini AI Studio site via a vpn and I am using it here, in an unsupported region, with no problem.

toi500 avatar May 04 '24 02:05 toi500

Yep, thanks. But the thing is that my country is supported and I can get api keys without vpn. But there is no clean answer if my Google Cloud Project location is the country of usage or actually an api call country? It is not clear. My Google Cloud Project is in EU i believe. Anyway, pure api key from ai studio still complaining about my country even it is supported.

timur-nocodia avatar May 04 '24 04:05 timur-nocodia

Ok, I figured out how this works.

I just tested my Gemini API key on a local server (IP from an unsupported region), and it does not work. This means that their API key only works if the service is hosted in a supported region, in my case, I have my Flowise instance running in the USA via Railway.

Also, it looks like that Google lifted the restriction of their API for end users. Weeks ago, even if you had the service running in the USA, an end user located in a unsupported region could not interact with the API, giving you an error message.

toi500 avatar May 04 '24 11:05 toi500

Thank you, it was very helpful. I will try to bypass this somehow, may by proxying calls.

timur-nocodia avatar May 04 '24 14:05 timur-nocodia

verified gemini and vertex ai working correctly: https://github.com/FlowiseAI/Flowise/issues/2365

feel free to re-open the issue if issue still persists

HenryHengZJ avatar May 09 '24 14:05 HenryHengZJ