Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 7, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

markijbema and others added 30 commits January 6, 2026 17:55
- Add supportsFim(), completeFim(), and streamFim() methods to MistralHandler
- FIM support is only enabled for codestral models (codestral-latest, codestral-2405, etc.)
- Uses Mistral's v1/fim/completions endpoint with proper base URL routing
- Supports both streaming and non-streaming FIM completions
- Add comprehensive test coverage with 10 test cases
- Update continuedev Mistral LLM to accurately check model support
- Implementation follows the same pattern as KiloCode OpenRouter handler

Closes: FIM functionality now works for Mistral's codestral models
- Add zai-glm-4.7 to Cerebras models in @roo-code/types\n- Update Cerebras docs to include GLM 4.7 and note GLM 4.6 deprecation\n- Add changeset for release notes
- Add FimCapableHandler interface for duck typing
- Add isFimCapable() type guard function
- Update supportsFim() and generateFimResponse() to use duck typing
- Any handler implementing supportsFim() and streamFim() now works with FIM
- Enables MistralHandler FIM support without explicit class checks
Address review comment about signature mismatch with IFimProvider interface.
The streamFim method now accepts optional taskId and onUsage parameters,
and calls onUsage when usage data is available in the stream response.
Add detection for suggestions where the tail is repeating itself - a common
LLM failure mode. For example, when a model gets stuck in a loop and suggests
'the beginning. We are going to start from the beginning. We are going to
start from the beginning...' repeated many times.

The new containsRepetitivePhraseFromPrefix function looks for phrases
(20-80 chars) from the end of the suggestion that appear 3+ times in the
suggestion text, indicating the model got stuck in a repetition loop.
…suggestions

feat(ghost): filter repetitive phrase suggestions in autocomplete
- Remove completeFim from IFimProvider interface
- Remove completeFim implementation from MistralHandler
- Remove completeFim implementation from KilocodeOpenrouterHandler
- Remove completeFim tests from both test files

The method was only used in tests and not in production code.
streamFim is the only FIM method needed.
add new file marker to hopefully prevent further markers
feat(mistral): add FIM support for codestral models
…red-filter

refactor: use shared postprocessGhostSuggestion filter in ChatTextAreaAutocomplete
Disable structured outputs for Anthropic models, because the tool schema doesn't yet support it
@pull pull bot locked and limited conversation to collaborators Jan 7, 2026
@pull pull bot added the ⤵️ pull label Jan 7, 2026
@pull pull bot merged commit 3d0dfac into jasonkneen:main Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants