Skip to content

Commit a6cb992

Browse files
committed
fix: add type assertions for custom context window values
1 parent d9cac62 commit a6cb992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/providers/mistral.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ export class MistralHandler extends BaseProvider implements SingleCompletionHand
102102
// Create a modified info object with reduced context window for better performance
103103
info = {
104104
...info,
105-
contextWindow: 41000,
106-
maxTokens: 41000,
105+
contextWindow: 41000 as any, // Use reduced context for better performance
106+
maxTokens: 41000 as any, // Match the context window limit
107107
}
108108
}
109109

0 commit comments

Comments
 (0)