replaced console with the toast insterd
This commit is contained in:
parent
e558f3abef
commit
b7047b2a19
11 changed files with 7 additions and 31 deletions
|
@ -27,7 +27,6 @@ export function GenerateQuestionsUsingAI() {
|
|||
})
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
console.log(data);
|
||||
questions.v = JSON.parse(data.choices[0].message.content);
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
|
@ -20,7 +20,7 @@ export async function UpLoadFiles(file) {
|
|||
});
|
||||
|
||||
if (result.error) {
|
||||
console.error("Upload error:", result.error.message);
|
||||
toast.error("Upload error:"+ result.error.message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue