From a6cb99222eeec9674f53b36a53fcb7e6672c121f Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 27 Aug 2025 13:00:57 +0000 Subject: [PATCH] fix: add type assertions for custom context window values --- src/api/providers/mistral.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/providers/mistral.ts b/src/api/providers/mistral.ts index bfb89361b6..c98038ebc3 100644 --- a/src/api/providers/mistral.ts +++ b/src/api/providers/mistral.ts @@ -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 } }