{#if totalEnergy > 0}
(showJoules = !showJoules)}> Total Energy: {#if showJoules} {convertToJoules(totalEnergy).toFixed(2)} J {:else} {totalEnergy.toFixed(4)} Wh {/if} {#if isEstimated} (estimated) {/if}
{equivalents[equivalentIndex](totalEnergy)}
Total Duration: {totalDuration.toFixed(3)} sec
(showTooltip = true)} on:mouseleave={() => (showTooltip = false)}> {#if showTooltip}
{#if isEstimated} Estimated energy consumption based on the average GPU power and inference duration for all messages. Use Qwen/Qwen/Qwen2.5-VL-7B-Instruct model for exact results. {:else} Energy consumption measured directly on the GPU during inference for all messages. {/if}
{/if}
{/if}