We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 144b056 commit e92e3c9Copy full SHA for e92e3c9
apps/sim/lib/knowledge/documents/service.ts
@@ -682,6 +682,11 @@ export async function processDocumentAsync(
682
totalTokensUsed: sql`total_tokens_used + ${totalEmbeddingTokens}`,
683
},
684
})
685
+ } else {
686
+ logger.warn(
687
+ `[${documentId}] Embedding model "${embeddingModelName}" has no pricing entry — billing skipped`,
688
+ { totalEmbeddingTokens, embeddingModelName }
689
+ )
690
}
691
} catch (billingError) {
692
logger.error(`[${documentId}] Failed to record embedding usage`, { error: billingError })
0 commit comments