Integrating Gemini with kodular

I try to use web to integrate Gemini with kodular, when i ask error happened!

Block I made



error i faced white type some thing and ask!

if there is additional thing

please help me on this!

Display the response content in a label to find out what has veen returned

It loobs libe there is no key called candidates in the dictionary

Well, name is not a dictionary…
Try
JsonTextDecodeWithDictionaries

Taifun

there is no JsonTextDecodeWithDictionaries block in kodular web component. what should i do???

Hi,

Post your Json response here

web (1).aia (3.6 KB)

said error to display for me

Instead of dictionaries work with lists of lists and the lookup in pairs block

App Inventor Code Snippets | Pura Vida Apps

Taifun


this is what happen when i upload response content to label

immagine
this is exactly the problem, for dictionaries it’s fine as you did if I’m not mistaken, but you’re calling the APIs in the wrong way.

You don’t have permission to call that URL so I think you’re entering an invalid API key


P.S. never make your API keys public or others might use them, disable the one for this project.

I delete all Api and regenerate new api again but still it said that you have no permission for api, even with a new email.

I don’t know much about gemini APIs but maybe you’ve reached the quota,
did you pay to get the key?
I won’t go into too much detail because this is no longer a kodular problem.

No it is free, can i test that after one day?? it has up to 200 free taken per day.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.