mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 13:32:55 -05:00
fix: Remove using tools from QuickRefactoring feature
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user