mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-20 05:54:41 -04:00
refactor: Decouple LLMClientInterface from ProvidersManager (#120)
This will be needed for tests.
This commit is contained in:
committed by
GitHub
parent
98e1047bf1
commit
58c3e26e7f
@ -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");
|
||||
|
Reference in New Issue
Block a user