Spaces:
Runtime error
Runtime error
Imrpove error handling
Browse files113 unmodified lines114115116117118119120121122113 unmodified linesif (streamingMsgAdded) {conversation.messages = conversation.messages.slice(0, -1);}hfToken = "";if (error.name !== "AbortError") {alert("error: " + (error as Error).message);}} finally {loading = false;113 unmodified lines114115116117118119120121122123124125126127128113 unmodified linesif (streamingMsgAdded) {conversation.messages = conversation.messages.slice(0, -1);}if (error instanceof Error) {if (error.message.includes("token seems invalid")) {hfToken = "";}if (error.name !== "AbortError") {alert("error: " + error.message);}} else {alert("An unknown error occurred");}} finally {loading = false;
src/lib/components/InferencePlayground/InferencePlayground.svelte+9-3