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);