Skip to content

Forum in maintenance, we will back soon 🙂

Create Free AI Tool...
 
Notifications
Clear all

Create Free AI Tools With WordPress and Gemini in 3 Minutes is not working for me

8 Posts
2 Users
0 Reactions
7 Views
(@shahzad777)
Posts: 4
Active Member
Topic starter
 

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?

 
Posted : 09/12/2024 7:40 pm
(@husein)
Posts: 458
Member Moderator
 

@shahzad777 Whats the error you're getting?

 
Posted : 09/14/2024 7:04 am
(@shahzad777)
Posts: 4
Active Member
Topic starter
 

@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

1
 
Posted : 09/14/2024 10:29 am
(@husein)
Posts: 458
Member Moderator
 

@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.

 
Posted : 09/15/2024 8:25 am
(@shahzad777)
Posts: 4
Active Member
Topic starter
 

@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.

 
Posted : 09/15/2024 8:31 am
(@husein)
Posts: 458
Member Moderator
 

@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.

 
Posted : 09/15/2024 11:48 am
(@shahzad777)
Posts: 4
Active Member
Topic starter
 

@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

 
Posted : 09/15/2024 7:32 pm
(@husein)
Posts: 458
Member Moderator
 

@shahzad777 The new codes are attached above, but anyway, here are the codes again:

 
Posted : 09/16/2024 8:17 am
Share: