diff --git a/claudash/index.html b/claudash/index.html index 0654a82..65e1862 100644 --- a/claudash/index.html +++ b/claudash/index.html @@ -4,6 +4,9 @@ + + +
Ask me anything about your briefing or the news... -
{loadingStatus}
++ API Usage: {tokenUsage.input_tokens?.toLocaleString()} input + {tokenUsage.output_tokens?.toLocaleString()} output = {(tokenUsage.input_tokens + tokenUsage.output_tokens).toLocaleString()} total tokens + {' • '} + Cost: ${((tokenUsage.input_tokens * 0.003 / 1000) + (tokenUsage.output_tokens * 0.015 / 1000)).toFixed(4)} + {' '} + + (Claude Sonnet 4 pricing: $0.003/1K input, $0.015/1K output) + +
++ 💾 Using cached results from {cacheInfo.age < 1 ? 'less than a minute' : cacheInfo.age === 1 ? '1 minute' : `${cacheInfo.age} minutes`} ago — no API costs incurred + {' '} + + (Click refresh to generate a new briefing) + +
+{briefing}
) : ( <>{JSON.stringify(data)}
}{data?.message || 'News data unavailable'} -
{data.storyIds.length} top stories loaded -
(Story details will load when API is configured) -
Data format not recognized -
{JSON.stringify(data).substring(0, 100)}... -
{data?.message || 'Weather data unavailable'} -
{description}