73fc70fe by RSA

fixes

1 parent 94162ec9
API_KEY="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"
API_ORG="org-2OIAoj4fSwE4RCzgvglUM55T"
LOCALHOST="http://localhost:3080/"
\ No newline at end of file
SERVER_URL="http://localhost:3080/"
\ No newline at end of file
......
......@@ -13,6 +13,7 @@
# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
......
......@@ -26,7 +26,7 @@ function App() {
}
function getEngines(){
fetch(process.env.LOCALHOST + "/models")
fetch(process.env.SERVER_URL + "/models")
.then(res => res.json())
.then(data => {
console.log(data.models.data)
......@@ -48,7 +48,7 @@ function App() {
// fetch response to the api combining the chat log array of messages and seinding it as a message to localhost:3000 as a post
const messages = chatLogNew.map((message) => message.message).join("\n")
const response = await fetch(process.env.LOCALHOST, {
const response = await fetch(process.env.SERVER_URL, {
method: "POST",
headers: {
"Content-Type": "application/json"
......
API_KEY= use specific API KEY;
API_ORG= use specific ORG KEY;
SERVER_URL= use specific Server URL;
\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!