fix(usage): record exact embedding tokens

This commit is contained in:
zie authored and decolua committed 2026-07-23 16:07:57 +07:00
1 parent 57b3b2c175
commit c85a5c57ba
3 files changed
+117 -1

No files matched your search

+1
View File
@@ -116,6 +116,7 @@ export async function handleEmbeddingsCore({
return {
success: true,
usage: normalized.usage || null,
response: new Response(JSON.stringify(normalized), {
headers: {
"Content-Type": "application/json",