25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
23
24 try {
25 const response = await fetch("/", {
26 method: "POST",
27 body: JSON.stringify({ prompt, currentCode: code }),
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
36 const generateNextMessage = async () => {
37 const currentSpeaker = conversation.length % 2 === 0 ? 1 : 2;
38 const res = await fetch("?nextMessage=true", {
39 method: "POST",
40 body: JSON.stringify({
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),