Spaces:
Runtime error
Runtime error
Imrpove error handling
Browse files113 unmodified lines114115116117118119117118119120121122123124125126127128113 unmodified lines if (streamingMsgAdded) { conversation.messages = conversation.messages.slice(0, -1); } hfToken = ""; if (error.name !== "AbortError") { alert("error: " + (error as Error).message); 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