mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 05:59:43 +02:00
fix: use Claude Opus pricing for cost estimation
- Input: $15/M tokens (was $3/M for Sonnet) - Output: $75/M tokens (was $15/M for Sonnet) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -429,11 +429,11 @@ class ClaudemanApp {
|
||||
return String(count);
|
||||
}
|
||||
|
||||
// Estimate cost from tokens using Claude Sonnet pricing
|
||||
// Input: $3/M tokens, Output: $15/M tokens
|
||||
// Estimate cost from tokens using Claude Opus pricing
|
||||
// Input: $15/M tokens, Output: $75/M tokens
|
||||
estimateCost(inputTokens, outputTokens) {
|
||||
const inputCost = (inputTokens / 1000000) * 3;
|
||||
const outputCost = (outputTokens / 1000000) * 15;
|
||||
const inputCost = (inputTokens / 1000000) * 15;
|
||||
const outputCost = (outputTokens / 1000000) * 75;
|
||||
return inputCost + outputCost;
|
||||
}
|
||||
|
||||
@@ -2599,8 +2599,8 @@ class ClaudemanApp {
|
||||
if (tokenEl) {
|
||||
tokenEl.textContent = total > 0 ? `${display} tokens · $${estimatedCost.toFixed(2)}` : '0 tokens';
|
||||
tokenEl.title = this.globalStats
|
||||
? `Lifetime: ${this.globalStats.totalSessionsCreated} sessions created\nEstimated cost based on Claude Sonnet pricing`
|
||||
: 'Token usage across active sessions\nEstimated cost based on Claude Sonnet pricing';
|
||||
? `Lifetime: ${this.globalStats.totalSessionsCreated} sessions created\nEstimated cost based on Claude Opus pricing`
|
||||
: 'Token usage across active sessions\nEstimated cost based on Claude Opus pricing';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user