Forum in maintenance, we will back soon 🙂
Create Free AI Tools With WordPress and Gemini in 3 Minutes is not working for me
Hi Hassan i am following your video: https://www.youtube.com/watch?v=Pl25QeHVjvM&t=134s
is not working for me.
i did copy the same code of PHP and HTML in my wordpress it is throwing error to me. something went wrong.
i am using Gemini api key and and the model is :
https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent
What i do now?
@husein It is saying to me "Oops! Something went wrong. Please try again."
I am attaching my php and html codes for your convenience.
I did not mention my api key as it is correctly working in my SimplerLLM project
please guide
@shahzad777 I revised the codes from my end it looked like there was a problem with the UI where it wasn't always sending the input to the backend, in addition to that, i added to logging errors in the backend code so make sure you add the new codes and add your own API key to the backend code.
@husein Is the same code working fine on your side using your API key?
or i send you my API key to test my code on your side?
Can you confirm me please so that i could check the code on my side.
although i just copy and paste your code and add api key in it.
@shahzad777 Yes, the code is working on my side using my API key. So just copy and paste the new codes I attached on your website, and your own API key in the backend, and it should work.
@husein Sorry where you attached the new codes. Can you give me the updated new codes here so that i could test and run?
Thank you
@shahzad777 The new codes are attached above, but anyway, here are the codes again: