update: update express server configuration to use remote URL

This commit is contained in:
sushant dhimal 2023-01-19 21:00:18 +05:45
parent 8a1267895b
commit f22d9a955c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ function App() {
setChatLog([...chatLog, { chatPrompt: inputPrompt }]);
async function callAPI() {
try {
const response = await fetch("http://localhost:4000/", {
const response = await fetch("https://talk-bot.onrender.com/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ message: inputPrompt }),