feat: Add configuration manager (#270)

This commit is contained in:
Petr Mironychev
2025-11-20 17:31:13 +01:00
committed by GitHub
parent 6f7d8a0987
commit 1e3b1997cc
16 changed files with 880 additions and 9 deletions

View File

@ -111,6 +111,19 @@ ChatRootView {
root.isThinkingMode = thinkingMode.checked
}
}
configSelector {
model: root.availableConfigurations
displayText: root.currentConfiguration
onActivated: function(index) {
if (index > 0) {
root.applyConfiguration(root.availableConfigurations[index])
}
}
popup.onAboutToShow: {
root.loadAvailableConfigurations()
}
}
}
ListView {

View File

@ -37,6 +37,7 @@ Rectangle {
property alias agentModeSwitch: agentModeSwitchId
property alias thinkingMode: thinkingModeId
property alias activeRulesCount: activeRulesCountId.text
property alias configSelector: configSelectorId
color: palette.window.hslLightness > 0.5 ?
Qt.darker(palette.window, 1.1) :
@ -238,6 +239,17 @@ Rectangle {
ToolTip.delay: 250
ToolTip.text: qsTr("Current amount tokens in chat and LLM limit threshold")
}
QoAComboBox {
id: configSelectorId
model: []
currentIndex: 0
ToolTip.visible: hovered
ToolTip.delay: 250
ToolTip.text: qsTr("Switch AI configuration")
}
}
}
}