Show xhigh effort as Extra in the model seat; rebuild client.js
This commit is contained in:
1 parent
22db8c4596
commit
81630ed477
4 files changed
+14
-5
No files matched your search
+6
-2
@@ -119,6 +119,10 @@ window.__ModuleLoader__.load({
|
||||
pinStore.listeners.forEach((fn) => fn());
|
||||
};
|
||||
|
||||
// DSH derives effort names from the level key ("xhigh" -> "Xhigh"); show friendlier ones.
|
||||
const EFFORT_NAMES = { xhigh: 'Extra' };
|
||||
const effortName = (e) => (e === undefined ? undefined : EFFORT_NAMES[e.id] ?? e.name);
|
||||
|
||||
function moveKey(order, from, to, pos) {
|
||||
if (from === to) return order;
|
||||
const without = order.filter((k) => k !== from);
|
||||
@@ -347,10 +351,10 @@ window.__ModuleLoader__.load({
|
||||
? state.retainedEffort
|
||||
: effectiveEffort === undefined
|
||||
? t('effort.providerDefault')
|
||||
: reasoning.efforts.find((l) => l.id === effectiveEffort)?.name ?? effectiveEffort;
|
||||
: effortName(reasoning.efforts.find((l) => l.id === effectiveEffort)) ?? effectiveEffort;
|
||||
const effortChoices = React.useMemo(() => (reasoning === undefined ? [] : [
|
||||
...(reasoning.defaultEffort === undefined ? [{ key: 'provider-default', effort: undefined, label: t('effort.providerDefault') }] : []),
|
||||
...reasoning.efforts.map((e) => ({ key: 'effort:' + e.id, effort: e.id, label: e.name })),
|
||||
...reasoning.efforts.map((e) => ({ key: 'effort:' + e.id, effort: e.id, label: effortName(e) })),
|
||||
]), [reasoning, t]);
|
||||
|
||||
const { pending } = state;
|
||||
|
||||
Reference in new issue
Block a user