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

@ -47,6 +47,7 @@
#include "chat/ChatOutputPane.h"
#include "chat/NavigationPanel.hpp"
#include "llmcore/PromptProviderFim.hpp"
#include "llmcore/ProvidersManager.hpp"
#include "settings/GeneralSettings.hpp"
#include "settings/ProjectSettingsPanel.hpp"
#include "settings/SettingsConstants.hpp"
@ -137,7 +138,8 @@ public:
void restartClient()
{
LanguageClient::LanguageClientManager::shutdownClient(m_qodeAssistClient);
m_qodeAssistClient = new QodeAssistClient(&m_promptProvider);
m_qodeAssistClient
= new QodeAssistClient(LLMCore::ProvidersManager::instance(), &m_promptProvider);
}
bool delayedInitialize() final