39ddb93b by RSA

WIP

1 parent c3b6d1ea
...@@ -10,8 +10,6 @@ function App() { ...@@ -10,8 +10,6 @@ function App() {
10 useEffect(() => { 10 useEffect(() => {
11 getEngines(); 11 getEngines();
12 }, []) 12 }, [])
13 const [env, setEnv] = useState({});
14 console.log(env.SERVER_URL)
15 const [chatInput, setChatInput] = useState(""); 13 const [chatInput, setChatInput] = useState("");
16 const [models, setModels] = useState([]); 14 const [models, setModels] = useState([]);
17 const [temperature, setTemperature] = useState(0.7); 15 const [temperature, setTemperature] = useState(0.7);
...@@ -30,7 +28,7 @@ function App() { ...@@ -30,7 +28,7 @@ function App() {
30 fetch("http://localhost:3080/models") 28 fetch("http://localhost:3080/models")
31 .then(res => res.json()) 29 .then(res => res.json())
32 .then(data => { 30 .then(data => {
33 console.log(data.models.data) 31 // console.log(data.models.data)
34 // set models in order alpahbetically 32 // set models in order alpahbetically
35 data.models.data.sort((a, b) => { 33 data.models.data.sort((a, b) => {
36 if(a.id < b.id) { return -1; } 34 if(a.id < b.id) { return -1; }
......
1 import OpenAISVGLogo from './OpenAISVGLogo'
2
3 // Primary Chat Window 1 // Primary Chat Window
4 const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput}) => 2 const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput}) =>
5 <section className="chatbox"> 3 <section className="chatbox">
......
...@@ -20,7 +20,7 @@ app.use(cors()) ...@@ -20,7 +20,7 @@ app.use(cors())
20 app.use(require('morgan')('dev')) 20 app.use(require('morgan')('dev'))
21 21
22 22
23 app.get('/env', (req, res) => { 23 app.get('/', (req, res) => {
24 res.send({ 24 res.send({
25 SERVER_URL: process.env.SERVER_URL, 25 SERVER_URL: process.env.SERVER_URL,
26 }); 26 });
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!