Skip to content

Conversation

@alexandrevilain
Copy link
Owner

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

Closes #8

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
@alexandrevilain alexandrevilain marked this pull request as ready for review August 21, 2025 12:06
@alexandrevilain alexandrevilain merged commit e27be8f into main Aug 21, 2025
8 checks passed
@alexandrevilain alexandrevilain deleted the feat/fim-completion branch August 21, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support codestral with fill-in-the-middle endpoint

1 participant