forked from React-Group/interstellar_ai
delete logs and fix hydration error
This commit is contained in:
parent
4ed2756b9a
commit
891dabcabf
10 changed files with 37 additions and 70 deletions
|
@ -14,10 +14,8 @@ onmessage = (e) => {
|
|||
};
|
||||
|
||||
const apiURL = new URL("http://localhost:5000/interstellar_ai/api/ai_send");
|
||||
console.log(windowname); // Log the window name
|
||||
apiURL.hostname = windowname; // Set the hostname for the API request
|
||||
|
||||
console.log(apiURL.href); // Log the constructed API URL
|
||||
|
||||
// Make a POST request to the API with the message object
|
||||
axios.post(apiURL.href, Message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue