We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485dcc6 commit 7b4f75eCopy full SHA for 7b4f75e
.changeset/gold-gorillas-clap.md
@@ -0,0 +1,5 @@
1
+---
2
+"@thirdweb-dev/service-utils": patch
3
4
+
5
+Add modelName, sessionId, requestId to usage
packages/service-utils/src/core/usage.ts
@@ -78,5 +78,8 @@ export const usageEventSchema = z.object({
78
providerIp: z.string().optional(),
79
promptTokens: z.number().int().nonnegative().optional(),
80
completionTokens: z.number().int().nonnegative().optional(),
81
+ modelName: z.string().optional(),
82
+ sessionId: z.string().optional(),
83
+ requestId: z.string().optional(),
84
});
85
export type UsageEvent = z.infer<typeof usageEventSchema>;
0 commit comments