caiosilva1221 commited on
Commit
111b4f7
·
verified ·
1 Parent(s): 261a335

Update src/components/ask-ai/ask-ai.tsx

Browse files
Files changed (1) hide show
  1. src/components/ask-ai/ask-ai.tsx +3 -4
src/components/ask-ai/ask-ai.tsx CHANGED
@@ -45,13 +45,13 @@ function AskAI({
45
  const request = await fetch("/api/ask-ai", {
46
  method: "POST",
47
  headers: {
48
- "Content-Type": "application/json",
49
  },
50
  body: JSON.stringify({
51
  prompt,
52
- previousPrompt,
53
  html,
54
- }),
 
55
  });
56
 
57
  if (!request.ok || !request.body) {
@@ -143,4 +143,3 @@ function AskAI({
143
  }
144
 
145
  export default AskAI;
146
-
 
45
  const request = await fetch("/api/ask-ai", {
46
  method: "POST",
47
  headers: {
48
+ "Content-Type": "application/json"
49
  },
50
  body: JSON.stringify({
51
  prompt,
 
52
  html,
53
+ previousPrompt
54
+ })
55
  });
56
 
57
  if (!request.ok || !request.body) {
 
143
  }
144
 
145
  export default AskAI;