error
This commit is contained in:
parent
325e5577aa
commit
8ebada79e9
@ -114,7 +114,7 @@ export default function Home() {
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log(`response`, response);
|
console.log(`response`, response);
|
||||||
console.log(response.data);
|
console.log(response.data);
|
||||||
speak(response.data.choices[0].message.content);
|
typeof speak !== 'undefined' && speak(response.data.choices[0].message.content);
|
||||||
setResponse(response.data.choices[0].message.content);
|
setResponse(response.data.choices[0].message.content);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user