mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
fix billing types
This commit is contained in:
parent
eccfb4748f
commit
d159430262
1 changed files with 3 additions and 3 deletions
|
|
@ -12,15 +12,15 @@ export const UsageTypeKey = z.enum([
|
|||
export const LLMUsage = z.object({
|
||||
type: z.literal(UsageTypeKey.Enum.LLM_USAGE),
|
||||
modelName: z.string(),
|
||||
inputTokens: z.number().positive(),
|
||||
outputTokens: z.number().positive(),
|
||||
inputTokens: z.number(),
|
||||
outputTokens: z.number(),
|
||||
context: z.string(),
|
||||
});
|
||||
|
||||
export const EmbeddingModelUsage = z.object({
|
||||
type: z.literal(UsageTypeKey.Enum.EMBEDDING_MODEL_USAGE),
|
||||
modelName: z.string(),
|
||||
tokens: z.number().positive(),
|
||||
tokens: z.number(),
|
||||
context: z.string(),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue