diff --git a/chatService.ts b/chatService.ts deleted file mode 100644 index ba6dfc4..0000000 --- a/chatService.ts +++ /dev/null @@ -1,34 +0,0 @@ -import axios from 'axios' - -async function getAnswer(question: string) : Promise{ - return await axios - .post(`http://127.0.0.1:3000`, { - question - }) - .then((response) => { - console.log(response) - return response.data - }) - .catch((error) => { - console.log(error) - }) -} - -async function getSpeechUrl(text: string) : Promise{ - return await axios - .post(`http://127.0.0.1:3000/speech`, { - text - }) - .then((response) => { - console.log(response) - return response.data - }) - .catch((error) => { - console.log(error) - }) -} - -export{ - getAnswer, - getSpeechUrl -} \ No newline at end of file