Repository navigation
4.3.26: dev > main - #592
Merged
Merged
Conversation
… cursor as suffix (#588) Their hosted FIM endpoints take the two sides of the hole as prompt and suffix. Both were sent in one prompt inside the model's FIM markers, the likely cause of empty completions anywhere but the end of a file. The markers are taken off in the HTTP adapter, so requests that reach either API through a gateway are covered without a protocol change, and the header and neighbouring files stay in the prompt. Prompts whose context is laid out with other special tokens, such as repository-level ones, send only the text either side of the cursor. Unmarked prompts, chat turns and other providers are unchanged.
…d form-data to 4.0.6
…Ollama raw The formatter dropped any end of a completion that repeats what follows the cursor, so `foo(|)` completed with `bar(x)` lost its last bracket. Closing punctuation now stays when dropping it would leave a bracket the completion opened unclosed. Longer repeats and closers the completion did not open are dropped as before. Ollama put its template round a prompt that already had the model's FIM markers. StarCoder2's adds tokens on both sides. Such a prompt now goes with raw: true, as chat-only FIM models' prompts already do. Prompts without markers are unchanged: a custom template may need the model's. The check for markers is the one the DeepSeek and Mistral suffix uses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes to autocomplete, and dependency updates.
foo(|)completed withbar(x)lost its last bracket, because the same one follows the cursor. Closing punctuation is now kept if dropping it would leave a bracket the suggestion opened unclosed. Closers the suggestion did not open are still dropped, as are longer repeats.raw: true. StarCoder2's Ollama template was adding tokens round twinny's finished prompt. Prompts without markers are unchanged, because a custom template may rely on the model's own. That includes StarCoder2 at the end of a file. This corrects the request; in a small benchmark,rawalone did not make a clear difference to StarCoder2's poor results. Open WebUI and P2P requests use the same code.suffix(already ondev). This is the likely cause of Auto-complete not working in the middle of text #588, so I've left the issue open until it's confirmed.dev):handlebars4.7.10, with overrides forfast-xml-parser4.5.7 andform-data4.0.6.Testing
rawrule is covered by unit tests. It hasn't been tested against a live Open WebUI or P2P server.Merging this publishes 4.3.26 to the VS Code Marketplace and Open VSX, and builds the Docker image.