Skip to content

Commit

Permalink
/run-deploy-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Lliillyy committed Dec 11, 2023
1 parent 4a3fa77 commit 8d9eb1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
})
Expand Down

0 comments on commit 8d9eb1d

Please sign in to comment.