Warning, /utilities/alpaka/src/apps/qml/LLMSettingsPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2023 Loren Burkholder <computersemiexpert@outlook.com> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 import QtQuick 0006 import QtQuick.Controls as Controls 0007 import QtQuick.Layouts 0008 import org.kde.kirigami as Kirigami 0009 import org.kde.kirigamiaddons.formcard as FormCard 0010 import org.kde.alpaka 0011 0012 FormCard.FormCardPage { 0013 title: i18n("LLM settings") 0014 0015 Component.onCompleted: { 0016 prompt.text = AlpakaSettings.systemPrompt; 0017 modelCombo.currentIndex = modelCombo.indexOfValue(AlpakaSettings.model); 0018 } 0019 0020 FormCard.FormHeader { 0021 title: i18n("Model settings") 0022 } 0023 0024 FormCard.FormCard { 0025 FormCard.FormComboBoxDelegate { 0026 id: modelCombo 0027 0028 text: i18n("LLM model") 0029 model: chat.llm.models 0030 onCurrentTextChanged: AlpakaSettings.model = currentText 0031 } 0032 0033 FormCard.FormTextFieldDelegate { 0034 id: prompt 0035 0036 label: i18n("System prompt") 0037 placeholderText: i18n("No system prompt") 0038 onTextChanged: AlpakaSettings.systemPrompt = text 0039 } 0040 } 0041 }