-
AI Chat Bot in Wp
Posted by Rupesh Sagvekar on January 22, 2025 at 3:59 pmI am getting Oops Something went wrong error when i am trying to chat with the bot.
can you help me. I am using xampp server for WordPress is it the problem.Hasan replied 1 week, 6 days ago 3 Members · 7 Replies -
7 Replies
-
mmm, first step we should test the chat endpoints alone without the UI to isolate the issue.
did you set the OPenAI API keys correctly? and updated the URLs? -
Yes i just copy the API key from API keys-OpenAI API
-
Did you charge your openai account with credits? because using OpenAI’s API is paid.
In addition, did you change the URLs in the code to your own website’s URL. Please attach the backend code, without your API key, so that we can see if it’s working.
-
-
Yes, I try just past the backend code without API key and also have change the URL in script.js that is {const apiUrl = ‘http://rupee-world-software-and-hardware-services.local/wp-json/myapi/v1/chat-bot/’;
const botConfigurationUrl = ‘http://rupee-world-software-and-hardware-services.local/wp-json/myapi/v1/chat-bot-config’;} in local wp still the issue is same
-
When you try the script ofcourse you need to add your API key.
But, i want you to attach the code here and please do so without the API key so that I can check it.-
Sorry I can’t understand what step are u saying to do
-
I prefer you wait for my next update, then you dont need any configurations.
-
-
-
Log in to reply.