Skip to content

Commit

Permalink
fix(models): allow string tokenizer config (langfuse#4898)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp authored Jan 6, 2025
1 parent 18a7cb6 commit d3f3f35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/src/features/models/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export const GetModelResultSchema = z.object({
projectId: z.string().nullable(),
modelName: z.string(),
matchPattern: z.string(),
tokenizerConfig: z
.record(z.union([z.string(), z.coerce.number()]))
.nullable(),
tokenizerConfig: z.union([
z.record(z.union([z.string(), z.coerce.number()])).nullable(),
z.string(),
]),
tokenizerId: TokenizerSchema,
prices: PriceMapSchema,
});
Expand Down

0 comments on commit d3f3f35

Please sign in to comment.