update: update express server configuration to use remote URL
This commit is contained in:
parent
8a1267895b
commit
f22d9a955c
|
@ -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 }),
|
||||
|
|
Loading…
Reference in New Issue