Skip to content

Commit 58434f9

Browse files
committed
fix
1 parent 5ce5fcd commit 58434f9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ async function processInstruction() {
2121

2222
try {
2323
// Call the server endpoint
24-
const response = await fetch('http://34.66.224.14:8080/generate', {
24+
// const response = await fetch('http://34.66.224.14:8080/generate', {
25+
const response = await fetch('https://yixuanwang.me/generate', {
2526
method: 'POST',
2627
headers: {
27-
'Content-Type': 'application/json'
28+
'Content-Type': 'application/json',
29+
'Accept': 'application/json'
2830
},
2931
body: JSON.stringify({ instruction })
3032
});

0 commit comments

Comments
 (0)