Spaces:
Sleeping
Sleeping
Fix possible null type
Browse files127 unmodified lines128129130131131132133134127 unmodified lines const endTime = performance.now(); latency = Math.round(endTime - startTime); } catch (error) { if (conversation.messages.at(-1)?.role === "assistant" && !conversation.messages.at(-1)?.content.trim()) { 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