fix: add type assertions for custom context window values

This commit is contained in:
Roo Code 2025-08-27 13:00:57 +00:00
parent d9cac62f12
commit a6cb99222e

View file

@ -102,8 +102,8 @@ export class MistralHandler extends BaseProvider implements SingleCompletionHand
// Create a modified info object with reduced context window for better performance
info = {
...info,
contextWindow: 41000,
maxTokens: 41000,
contextWindow: 41000 as any, // Use reduced context for better performance
maxTokens: 41000 as any, // Match the context window limit
}
}