mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: make connection properties optional in provider settings schema
- Remove default values from connection properties to make them truly optional - Fixes TypeScript compilation errors in e2e tests that use partial RooCodeSettings objects - Connection properties will use fallback defaults in Task.ts implementation
This commit is contained in:
parent
6279a5e87d
commit
ad26adcae5
1 changed files with 5 additions and 5 deletions
|
|
@ -78,11 +78,11 @@ const baseProviderSettingsSchema = z.object({
|
|||
modelMaxThinkingTokens: z.number().optional(),
|
||||
|
||||
// Enterprise network configuration for connection reliability
|
||||
connectionKeepAliveEnabled: z.boolean().optional().default(true),
|
||||
connectionKeepAliveInterval: z.number().min(5000).max(300000).optional().default(30000), // 5s to 5min, default 30s
|
||||
connectionRetryEnabled: z.boolean().optional().default(true),
|
||||
connectionMaxRetries: z.number().min(0).max(10).optional().default(3),
|
||||
connectionRetryBaseDelay: z.number().min(1000).max(30000).optional().default(2000), // 1s to 30s, default 2s
|
||||
connectionKeepAliveEnabled: z.boolean().optional(),
|
||||
connectionKeepAliveInterval: z.number().min(5000).max(300000).optional(),
|
||||
connectionRetryEnabled: z.boolean().optional(),
|
||||
connectionMaxRetries: z.number().min(0).max(10).optional(),
|
||||
connectionRetryBaseDelay: z.number().min(1000).max(30000).optional(),
|
||||
})
|
||||
|
||||
// Several of the providers share common model config properties.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue