diff --git a/src/main/kotlin/ai/devchat/plugin/completion/agent/ContextBuilder.kt b/src/main/kotlin/ai/devchat/plugin/completion/agent/ContextBuilder.kt index e07beb9..ce4736b 100644 --- a/src/main/kotlin/ai/devchat/plugin/completion/agent/ContextBuilder.kt +++ b/src/main/kotlin/ai/devchat/plugin/completion/agent/ContextBuilder.kt @@ -186,8 +186,8 @@ class ContextBuilder(val file: PsiFile, val offset: Int) { ).joinToString("") Log.info("Extras completion context:\n$extras") return if (!model.isNullOrEmpty() && model.contains("deepseek")) - "<|fim▁begin|>$extras$filepath\n\n$prefix<|fim▁hole|>$suffix<|fim▁end|>" + "<|fim▁begin|>$extras$commentPrefix$filepath\n\n$prefix<|fim▁hole|>$suffix<|fim▁end|>" else - "$extras$filepath\n\n$prefix$suffix" + "$extras$commentPrefix$filepath\n\n$prefix$suffix" } } \ No newline at end of file