feat(panel): Orchestrator compatibility, ID display toggle, and Hydrogen pricing (v1.4.5)

This commit is contained in:
fish
2026-11-13 17:26:27 +09:00
parent c0dcecc8c8
commit 3ac4268156
25 changed files with 1021 additions and 144 deletions
+7 -2
View File
@@ -28,6 +28,7 @@ import { enumerateAndSyncConversations } from './local-scanner.mjs';
import { callLsRpc, getOfficialQuotaSummary } from './ls-rpc.mjs';
import {
computeStepCost,
formatUpstreamModelId,
isArgonModelIdentifier,
isCarbonModelIdentifier,
resolveModelInfo,
@@ -135,7 +136,10 @@ function enrichActiveConversationSteps(
const rawUpstreamModel =
resolvedResponseModel ||
(mInfo.modelId && mInfo.modelId !== 'unknown' ? mInfo.modelId : mInfo.shortName);
const modelUpstream = st.isCompactionStep ? `${rawUpstreamModel}·压缩` : rawUpstreamModel;
const annotatedUpstreamModel = formatUpstreamModelId(rawUpstreamModel, mInfo);
const modelUpstream = st.isCompactionStep
? `${annotatedUpstreamModel}·压缩`
: annotatedUpstreamModel;
const {
viewableDelaySec: _viewableDelaySec,
@@ -898,10 +902,11 @@ export async function buildTelemetryPayloadInternal(
? knownUpstreamByModelKey.get(bestMetricStep.modelKey) || ''
: '');
modelShort = mInfo.shortName || '';
modelUpstream =
const rawQuickUpstream =
resolvedResp ||
(mInfo.modelId && mInfo.modelId !== 'unknown' ? mInfo.modelId : mInfo.shortName) ||
'';
modelUpstream = formatUpstreamModelId(rawQuickUpstream, mInfo);
latestTokPerSec = roundMetric(speedMetric(bestMetricStep).value);
}