Skip to content

Commit

Permalink
chat test
Browse files Browse the repository at this point in the history
  • Loading branch information
mayarajan3 committed Jan 13, 2025
1 parent 2df3dc2 commit bad9754
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/src/doodlebot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ export default class DoodlebotBlocks extends extension(details, "ui", "indicator
}

async sendAudioFileToChatEndpoint() {
const url = "https://doodlebot.media.mit.edu/health";
const url = "https://doodlebot.media.mit.edu/chat";

// Create a simple WAV file buffer
const sampleRate = 44100; // Standard audio sample rate
Expand Down Expand Up @@ -740,10 +740,10 @@ export default class DoodlebotBlocks extends extension(details, "ui", "indicator

try {
const response = await fetch(url, {
method: "GET",
method: "POST",
// headers: { "Content-Type": "multipart/form-data" },
// body: formData,
mode: 'no-cors'
body: formData,
//mode: 'no-cors'
});

console.log(response);
Expand Down

0 comments on commit bad9754

Please sign in to comment.