39ddb93b by RSA

WIP

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