From 8d9eb1da87a2edea98c576441982d9206c2283de Mon Sep 17 00:00:00 2001 From: Yuqing Pan Date: Sun, 10 Dec 2023 21:57:21 -0500 Subject: [PATCH] /run-deploy-app --- src/frontend/src/App.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/App.jsx b/src/frontend/src/App.jsx index 86820e4..6ca4dbb 100644 --- a/src/frontend/src/App.jsx +++ b/src/frontend/src/App.jsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; import "./App.css"; import { Configuration, OpenAIApi } from "openai"; -const APP_VERSION = "1.0"; +const APP_VERSION = "1.2"; // Reference: https://github.com/EBEREGIT/react-chatgpt-tutorial @@ -85,8 +85,8 @@ function App() { setImage(null); console.log("Trying to send", chats, formData) - fetch("http://127.0.0.1:5000/chat", { - // fetch("http://34.125.158.148:5000/chat", { + fetch("/api/chat", { // for nginx + // fetch("http://127.0.0.1:5000/chat", { // for Docker.dev "method": "POST", body: formData })