From ff74a8ed9c6c59e32a79cacd82c8d3835aa6774b Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Wed, 28 May 2025 17:29:57 -0700 Subject: [PATCH] Revert "AudioRef: placeholder tokens" This reverts commit ab217596d8261c8129ad91b75207ef958bbbe8d4. --- src/common/stores/chat/chat.tokens.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/common/stores/chat/chat.tokens.ts b/src/common/stores/chat/chat.tokens.ts index 1816e3f40..9064a40be 100644 --- a/src/common/stores/chat/chat.tokens.ts +++ b/src/common/stores/chat/chat.tokens.ts @@ -51,10 +51,6 @@ function _fragmentTokens(llm: DLLM, role: DMessageRole, fragment: DMessageFragme switch (cPart.pt) { case 'error': return estimateTextTokens(cPart.error, llm, debugFrom); - case 'audio_ref': - // we don't have token/costs estimates for audio yet - console.warn('Unhandled token preview for audio_ref content part:', cPart); - return 0; case 'image_ref': const forcedSize = role === 'assistant' ? 512 : undefined; return estimateImageTokens(forcedSize || cPart.width, forcedSize || cPart.height, debugFrom, llm);