Closed reneleonhardt closed 4 months ago
Hmm, if infilling is not supported for Llama 3, then why support it? Can we just disable it?
Are you sure? 😉 I tried this PR locally and code completions were shown 😅 Please try if it works for you too.
Code completions require a different prompt template
I added a new InfillPromptTemplate, can you fix it? Otherwise I'll remove it and just leave the NPE fixes.
Most Llama models don't support code completions (only Code Llama and Deepseek Coder). This PR fixes the NPE that was produced and adds support for Llama 3.
I guess #495 beginning of empty line is not possible with com.intellij.codeInsight.inline.completion.elements.InlineCompletionGrayTextElement.Presentable#render returning on empty text. But entering tabulators shows no completion either. Any number of spaces shows completions. But when followed by a backspace (some spaces deleted), completions disappear again 😅