We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce5fcd commit 58434f9Copy full SHA for 58434f9
1 file changed
app.js
@@ -21,10 +21,12 @@ async function processInstruction() {
21
22
try {
23
// Call the server endpoint
24
- const response = await fetch('http://34.66.224.14:8080/generate', {
+ // const response = await fetch('http://34.66.224.14:8080/generate', {
25
+ const response = await fetch('https://yixuanwang.me/generate', {
26
method: 'POST',
27
headers: {
- 'Content-Type': 'application/json'
28
+ 'Content-Type': 'application/json',
29
+ 'Accept': 'application/json'
30
},
31
body: JSON.stringify({ instruction })
32
});
0 commit comments