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

24 Posts
4 Users
3 Reactions
185 Views
(@husein)
Posts: 536
Member Moderator
 

@vfedulov I fixed both your codes, you only need to enter your gemini API key in the PHP script and it will work.

 
Posted : 10/19/2024 3:46 pm
(@vfedulov)
Posts: 4
New Member
 

@husein Its alive! Thanx man, it works well now. 👍 👍 👍 

image
 
Posted : 10/19/2024 5:50 pm
(@vfedulov)
Posts: 4
New Member
 

@husein Ok, it works now, good. So next question: what to change in code snippet to make this generator not to generate titles, but to generate long read? i.e. "generate text of 1000 characters about...". So I don't need titles, i want it to work similar to ChatGPT. Is it possible to do in offline mode connecting my API Key? 
Thnx in advance.

 
Posted : 10/19/2024 6:52 pm
(@husein)
Posts: 536
Member Moderator
 

@vfedulov This snippet is coded in a way it works better for titles and takes them and display as shown. You can edit the code so that it generates long text but not in this form. 

I think this tutorial gives you the simple script that works for any tool then you can edit the prompt in it to generate something long.

try to do it yourself, and if you want any help we'll be here to help.

 
Posted : 10/22/2024 6:48 pm
Page 2 / 2
Share: