mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-27 21:05:34 +00:00
Fix leaderboard savings lookup after provider-key rename (#635)
PR #634 renamed the Anthropic cost-comparison provider key `claude-opus-4.6` -> `claude-fable-5` but missed one consumer: App.tsx looks up the Anthropic entry by that key to compute the `dollar_savings` value submitted to the leaderboard. After the rename `per_provider.find(p => p.provider === 'claude-opus-4.6')` returned undefined, so this path silently submitted dollar_savings = 0. Point the lookup at the new key. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
cadb3e2ae6
commit
d5d8fddc94
@@ -89,7 +89,7 @@ export default function App() {
|
||||
setSavings(data);
|
||||
if (optInEnabled && optInDisplayName && data) {
|
||||
const claudeEntry = data.per_provider.find(
|
||||
(p) => p.provider === 'claude-opus-4.6',
|
||||
(p) => p.provider === 'claude-fable-5',
|
||||
);
|
||||
const dollarSavings = claudeEntry ? claudeEntry.total_cost : 0;
|
||||
const energySaved = data.per_provider.reduce(
|
||||
|
||||
Reference in New Issue
Block a user