refactor: Decouple LLMClientInterface from ProvidersManager (#120)

This will be needed for tests.
This commit is contained in:
Povilas Kanapickas
2025-03-10 11:40:51 +02:00
committed by GitHub
parent 98e1047bf1
commit 58c3e26e7f
8 changed files with 59 additions and 9 deletions

View File

@ -44,9 +44,13 @@ using namespace Core;
namespace QodeAssist {
QodeAssistClient::QodeAssistClient(LLMCore::IPromptProvider *promptProvider)
QodeAssistClient::QodeAssistClient(
LLMCore::IProviderRegistry &providerRegistry, LLMCore::IPromptProvider *promptProvider)
: LanguageClient::Client(new LLMClientInterface(
Settings::generalSettings(), Settings::codeCompletionSettings(), promptProvider))
Settings::generalSettings(),
Settings::codeCompletionSettings(),
providerRegistry,
promptProvider))
, m_recentCharCount(0)
{
setName("Qode Assist");