mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 10:59:30 -04:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <pluginllmcore/Provider.hpp>
|
|
|
|
#include <LLMQore/ClaudeClient.hpp>
|
|
|
|
namespace QodeAssist::Providers {
|
|
|
|
class ClaudeProvider : public PluginLLMCore::Provider
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ClaudeProvider(QObject *parent = nullptr);
|
|
|
|
QString name() const override;
|
|
QString url() const override;
|
|
void prepareRequest(
|
|
QJsonObject &request,
|
|
PluginLLMCore::PromptTemplate *prompt,
|
|
PluginLLMCore::ContextData context,
|
|
PluginLLMCore::RequestType type,
|
|
bool isToolsEnabled,
|
|
bool isThinkingEnabled) override;
|
|
QFuture<QList<QString>> getInstalledModels(const QString &url) override;
|
|
PluginLLMCore::ProviderID providerID() const override;
|
|
PluginLLMCore::ProviderCapabilities capabilities() const override;
|
|
|
|
::LLMQore::BaseClient *client() const override;
|
|
QString apiKey() const override;
|
|
|
|
private:
|
|
::LLMQore::ClaudeClient *m_client;
|
|
};
|
|
|
|
} // namespace QodeAssist::Providers
|