Skip to content

Commit a328425

Browse files
committed
chore: Add promptTokens and completionTokens fields
1 parent e2754df commit a328425

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/service-utils/src/core/usage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,7 @@ export const usageEventSchema = z.object({
7676
onRampId: z.string().optional(),
7777
evmRequestParams: z.string().optional(),
7878
providerIp: z.string().optional(),
79+
promptTokens: z.number().int().nonnegative().optional(),
80+
completionTokens: z.number().int().nonnegative().optional(),
7981
});
8082
export type UsageEvent = z.infer<typeof usageEventSchema>;

0 commit comments

Comments
 (0)