mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-22 23:15:17 -04:00
refactor: Move all processing logic to CodeHandler::processText() (#107)
This will become useful once more processing modes are available
This commit is contained in:
committed by
GitHub
parent
5536de146c
commit
521261e0a3
@ -293,11 +293,9 @@ void LLMClientInterface::sendCompletionToClient(
|
||||
|
||||
LOG_MESSAGE(QString("Completions before filter: \n%1").arg(completion));
|
||||
|
||||
QString processedCompletion
|
||||
= promptTemplate->type() == LLMCore::TemplateType::Chat
|
||||
&& Settings::codeCompletionSettings().smartProcessInstuctText()
|
||||
? CodeHandler::processText(completion)
|
||||
: completion;
|
||||
bool smartProcess = promptTemplate->type() == LLMCore::TemplateType::Chat
|
||||
&& Settings::codeCompletionSettings().smartProcessInstuctText();
|
||||
QString processedCompletion = CodeHandler::processText(completion, smartProcess);
|
||||
|
||||
completionItem[LanguageServerProtocol::textKey] = processedCompletion;
|
||||
QJsonObject range;
|
||||
|
Reference in New Issue
Block a user