refactor: Remove dead code

This commit is contained in:
Petr Mironychev
2026-04-01 21:12:41 +02:00
parent b82a7cf1f1
commit f75a87ac5e
29 changed files with 47 additions and 171 deletions

View File

@ -38,8 +38,9 @@ namespace QodeAssist::Providers {
GoogleAIProvider::GoogleAIProvider(QObject *parent)
: PluginLLMCore::Provider(parent)
, m_client(new ::LLMCore::GoogleAIClient(url(), apiKey(), QString(), this))
, m_client(new ::LLMCore::GoogleAIClient(QString(), QString(), QString(), this))
{
m_apiKeyGetter = [] { return Settings::providerSettings().googleAiApiKey(); };
Tools::registerQodeAssistTools(m_client->tools());
}
@ -148,22 +149,6 @@ QFuture<QList<QString>> GoogleAIProvider::getInstalledModels(const QString &base
return m_client->listModels();
}
QString GoogleAIProvider::apiKey() const
{
return Settings::providerSettings().googleAiApiKey();
}
void GoogleAIProvider::prepareNetworkRequest(QNetworkRequest &networkRequest) const
{
networkRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
QUrl url = networkRequest.url();
QUrlQuery query(url.query());
query.addQueryItem("key", apiKey());
url.setQuery(query);
networkRequest.setUrl(url);
}
PluginLLMCore::ProviderID GoogleAIProvider::providerID() const
{
return PluginLLMCore::ProviderID::GoogleAI;