Skip to content

Commit

Permalink
Add error output for token
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Maria committed Feb 29, 2024
1 parent 9ca5daa commit 3069434
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,13 @@
},
};
}
let errorMessage = errorData.error;
let errorMessage = ''
if (errorData.detail != undefined) {
errorMessage = errorData.detail;
}
if (errorData.error != undefined) {
errorMessage = errorData.error;
}
// Handle messages over the token limit
/*source.close();
Expand Down

0 comments on commit 3069434

Please sign in to comment.