Spaces:
Sleeping
Sleeping
Fix possible null type
Browse files127 unmodified lines128129130131132133134127 unmodified linesconst endTime = performance.now();latency = Math.round(endTime - startTime);} catch (error) {if (conversation.messages.at(-1)?.role === "assistant" && !conversation.messages.at(-1)?.content.trim()) {conversation.messages.pop();conversation.messages = [...conversation.messages];}127 unmodified lines128129130131132133134127 unmodified linesconst endTime = performance.now();latency = Math.round(endTime - startTime);} catch (error) {if (conversation.messages.at(-1)?.role === "assistant" && !conversation.messages.at(-1)?.content?.trim()) {conversation.messages.pop();conversation.messages = [...conversation.messages];}
src/lib/components/InferencePlayground/InferencePlayground.svelte+1-1