mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-20 05:54:41 -04:00
refactor: Inject settings into LLMClientInterface (#114)
This reduces reliance on global state and makes it more possible to test the code.
This commit is contained in:
committed by
GitHub
parent
3a494d5254
commit
6c323642e4
@ -45,7 +45,8 @@ using namespace Core;
|
||||
namespace QodeAssist {
|
||||
|
||||
QodeAssistClient::QodeAssistClient()
|
||||
: LanguageClient::Client(new LLMClientInterface())
|
||||
: LanguageClient::Client(
|
||||
new LLMClientInterface(Settings::generalSettings(), Settings::codeCompletionSettings()))
|
||||
, m_recentCharCount(0)
|
||||
{
|
||||
setName("Qode Assist");
|
||||
|
Reference in New Issue
Block a user