mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-05-13 16:07:30 +00:00
refactor(config): update summarizationTriggerSchema to use enum for type validation
Changed the type of the `type` field in the summarizationTriggerSchema from a string to an enum with a single value 'token_count'. This modification enhances type safety and ensures that only valid types are accepted in the configuration, improving overall clarity and maintainability of the schema.
This commit is contained in:
parent
d61689e84c
commit
f75bcd459e
1 changed files with 1 additions and 1 deletions
|
|
@ -951,7 +951,7 @@ export const memorySchema = z.object({
|
|||
export type TMemoryConfig = DeepPartial<z.infer<typeof memorySchema>>;
|
||||
|
||||
export const summarizationTriggerSchema = z.object({
|
||||
type: z.string(),
|
||||
type: z.enum(['token_count']),
|
||||
value: z.number().positive(),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue