You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(autocomplete): add FIM support with Mistral Codestral provider
Add Fill-in-the-Middle (FIM) completion support by restructuring the autocomplete system. Introduce dedicated HoleFiller implementations for different completion strategies and add Mistral Codestral provider with native FIM capabilities.
- Add ai-sdk-mistral-fim dependency for FIM support
- Refactor HoleFiller interface to use prompt-based architecture
- Extract DefaultHoleFiller from holeFiller.ts with existing hole-filling logic
- Add MistralFimHoleFiller for native FIM completion
- Create CodestralProvider with Mistral FIM integration
- Add provider detection logic to select appropriate completion strategy
- Consolidate autocomplete exports in index.ts
- Update completion provider to dynamically choose HoleFiller based on provider type
return`${context}<QUERY>\n${ctx.textBeforeCursor}{{FILL_HERE}}${ctx.textAfterCursor}\n</QUERY>\nTASK: Fill the {{FILL_HERE}} hole. Answer only with the CORRECT completion, and NOTHING ELSE. Do it now.\n<COMPLETION>`;
return`${context}<QUERY>\n${ctx.textBeforeCursor}{{FILL_HERE}}${ctx.textAfterCursor}\n</QUERY>\nTASK: Fill the {{FILL_HERE}} hole. Answer only with the CORRECT completion, and NOTHING ELSE. Do it now.\n<COMPLETION>`;
0 commit comments