mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
feat: Add Qwen provider
This commit is contained in:
34
providers/QwenProvider.cpp
Normal file
34
providers/QwenProvider.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include "QwenProvider.hpp"
|
||||
|
||||
#include "settings/ProviderSettings.hpp"
|
||||
|
||||
namespace QodeAssist::Providers {
|
||||
|
||||
QwenProvider::QwenProvider(QObject *parent)
|
||||
: OpenAICompatProvider(parent)
|
||||
{}
|
||||
|
||||
QString QwenProvider::name() const
|
||||
{
|
||||
return "Qwen (OpenAI)";
|
||||
}
|
||||
|
||||
QString QwenProvider::apiKey() const
|
||||
{
|
||||
return Settings::providerSettings().qwenApiKey();
|
||||
}
|
||||
|
||||
QString QwenProvider::url() const
|
||||
{
|
||||
return "https://dashscope-intl.aliyuncs.com/compatible-mode/v1";
|
||||
}
|
||||
|
||||
PluginLLMCore::ProviderID QwenProvider::providerID() const
|
||||
{
|
||||
return PluginLLMCore::ProviderID::Qwen;
|
||||
}
|
||||
|
||||
} // namespace QodeAssist::Providers
|
||||
Reference in New Issue
Block a user