refactor: Improve system prompt and message

This commit is contained in:
Petr Mironychev
2025-02-12 01:47:52 +01:00
parent 1fa6a225a4
commit 7d23d0323f
5 changed files with 26 additions and 22 deletions

View File

@ -210,8 +210,7 @@ LLMCore::ContextData DocumentContextReader::prepareContext(int lineNumber, int c
QString contextAfter = getContextAfter(lineNumber, cursorPosition);
QString fileContext;
if (Settings::codeCompletionSettings().useFilePathInContext())
fileContext.append("\n ").append(getLanguageAndFileInfo());
fileContext.append("\n ").append(getLanguageAndFileInfo());
if (Settings::codeCompletionSettings().useProjectChangesCache())
fileContext.append("\n ").append(