mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 12:52:11 +03:00
fix(core): restore degradation settings and clean combo stream output
Persist background degradation settings as structured data so they can be reloaded during node startup without double-encoding JSON. Update settings validation to accept the missing fields used by the API and align models.dev sync interval bounds with millisecond-based values. Also strip omniModel tags when they are wrapped by either literal escaped newlines or actual newline characters, and adjust the combo routing test to match the cleaned streamed content.
This commit is contained in:
@@ -88,5 +88,8 @@ export const updateSettingsSchema = z.object({
|
||||
skillsmpApiKey: z.string().max(200).optional(),
|
||||
// models.dev sync settings
|
||||
modelsDevSyncEnabled: z.boolean().optional(),
|
||||
modelsDevSyncInterval: z.number().int().min(3600).max(604800).optional(),
|
||||
modelsDevSyncInterval: z.number().int().min(1000).max(604800000).optional(),
|
||||
// Missing settings
|
||||
lkgpEnabled: z.boolean().optional(),
|
||||
backgroundDegradation: z.unknown().optional(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user