fix(usage): record exact embedding tokens

This commit is contained in:
zie
2026-07-23 16:07:57 +07:00
committed by decolua
parent 57b3b2c175
commit c85a5c57ba
3 changed files with 117 additions and 1 deletions
+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",