mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Change ids on OR prompt cost
This commit is contained in:
@@ -266,9 +266,9 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-tg-type="openrouter">
|
<small data-tg-type="openrouter">
|
||||||
Max prompt cost: <span id="openrouter_max_prompt_cost_tg">Unknown</span>
|
Max prompt cost: <span id="or_prompt_cost">–</span>
|
||||||
</div>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -384,7 +384,7 @@ function calculateOpenRouterCost() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#openrouter_max_prompt_cost_tg').text(cost);
|
$('#or_prompt_cost').text(cost);
|
||||||
|
|
||||||
// Schedule an update when settings change
|
// Schedule an update when settings change
|
||||||
eventSource.removeListener(event_types.SETTINGS_UPDATED, calculateOpenRouterCost);
|
eventSource.removeListener(event_types.SETTINGS_UPDATED, calculateOpenRouterCost);
|
||||||
|
Reference in New Issue
Block a user