mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-14 18:29:30 -04:00
refactor: final Agent loader
This commit is contained in:
@@ -147,10 +147,7 @@ AgentRowCard::AgentRowCard(const AgentConfig &cfg, QWidget *parent)
|
||||
|
||||
Pill *sourcePill = nullptr;
|
||||
if (cfg.isUserSource()) {
|
||||
sourcePill = new Pill(
|
||||
Pill::User,
|
||||
cfg.overridesBundled ? Tr::tr("Override") : Tr::tr("User"),
|
||||
this);
|
||||
sourcePill = new Pill(Pill::User, Tr::tr("User"), this);
|
||||
}
|
||||
|
||||
auto *description = new QLabel(this);
|
||||
|
||||
@@ -296,9 +296,7 @@ void AgentSlotWidget::setAgentConfig(const AgentConfig &cfg)
|
||||
m_name->setText(cfg.name);
|
||||
|
||||
if (cfg.isUserSource()) {
|
||||
m_sourcePill->setText(cfg.overridesBundled
|
||||
? Tr::tr("User overrides bundled")
|
||||
: Tr::tr("User"));
|
||||
m_sourcePill->setText(Tr::tr("User"));
|
||||
m_sourcePill->show();
|
||||
} else {
|
||||
m_sourcePill->hide();
|
||||
|
||||
@@ -95,10 +95,10 @@ void fillMissingFromDefaults(PipelineRosters &r, const toml::table §ion)
|
||||
PipelineRosters PipelineRosters::defaults()
|
||||
{
|
||||
PipelineRosters r;
|
||||
r.codeCompletion = {QStringLiteral("Ollama Qwen2.5-Coder Completion")};
|
||||
r.chatAssistant = {QStringLiteral("Ollama Chat")};
|
||||
r.chatCompression = {QStringLiteral("Ollama Compression")};
|
||||
r.quickRefactor = {QStringLiteral("Ollama Quick Refactor")};
|
||||
r.codeCompletion = {QStringLiteral("Ollama Qwen2.5-Coder FIM")};
|
||||
r.chatAssistant = {QStringLiteral("Ollama (OpenAI-compatible) Chat")};
|
||||
r.chatCompression = {QStringLiteral("Ollama (OpenAI-compatible) Chat")};
|
||||
r.quickRefactor = {QStringLiteral("Ollama (OpenAI-compatible) Chat")};
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user