fix: Remove using tools from QuickRefactoring feature

This commit is contained in:
Petr Mironychev
2025-10-23 16:16:47 +02:00
parent 5e1530715c
commit fad2453dbe
2 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ void QuickRefactorHandler::prepareAndSendRequest(
} }
LLMCore::LLMConfig config; LLMCore::LLMConfig config;
config.requestType = LLMCore::RequestType::Chat; config.requestType = LLMCore::RequestType::QuickRefactoring;
config.provider = provider; config.provider = provider;
config.promptTemplate = promptTemplate; config.promptTemplate = promptTemplate;
config.url = QString("%1%2").arg(settings.caUrl(), provider->chatEndpoint()); config.url = QString("%1%2").arg(settings.caUrl(), provider->chatEndpoint());
@ -144,8 +144,8 @@ void QuickRefactorHandler::prepareAndSendRequest(
LLMCore::ContextData context = prepareContext(editor, range, instructions); LLMCore::ContextData context = prepareContext(editor, range, instructions);
provider provider->prepareRequest(
->prepareRequest(config.providerRequest, promptTemplate, context, LLMCore::RequestType::Chat); config.providerRequest, promptTemplate, context, LLMCore::RequestType::QuickRefactoring);
QString requestId = QUuid::createUuid().toString(); QString requestId = QUuid::createUuid().toString();
m_lastRequestId = requestId; m_lastRequestId = requestId;

View File

@ -23,7 +23,7 @@
namespace QodeAssist::LLMCore { namespace QodeAssist::LLMCore {
enum RequestType { CodeCompletion, Chat, Embedding }; enum RequestType { CodeCompletion, Chat, Embedding, QuickRefactoring };
using RequestID = QString; using RequestID = QString;
} }