mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-14 02:09:22 -04:00
refactor: add to template agent roles
This commit is contained in:
@@ -248,6 +248,15 @@ void AgentFactory::setModelOverride(const QString &agentName, const QString &mod
|
||||
saveModelOverrides();
|
||||
}
|
||||
|
||||
QString AgentFactory::effectiveModel(const QString &agentName) const
|
||||
{
|
||||
const QString ov = m_modelOverrides.value(agentName);
|
||||
if (!ov.isEmpty())
|
||||
return ov;
|
||||
const AgentConfig *cfg = configByName(agentName);
|
||||
return cfg ? cfg->model : QString();
|
||||
}
|
||||
|
||||
namespace {
|
||||
QString modelOverridesPath()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user