Exclude current file cache from request

This commit is contained in:
Petr Mironychev
2024-09-11 01:37:57 +02:00
parent cd1a9e16e0
commit 2fb876ff00
3 changed files with 8 additions and 6 deletions

View File

@ -278,7 +278,7 @@ ContextData LLMClientInterface::prepareContext(const QJsonObject &request,
DocumentContextReader reader(widget->textDocument());
QString recentChanges = ChangesManager::instance().getRecentChangesContext();
QString recentChanges = ChangesManager::instance().getRecentChangesContext(textDocument);
QString contextBefore = сontextBefore(widget, lineNumber, cursorPosition);
QString contextAfter = сontextAfter(widget, lineNumber, cursorPosition);