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