Warning, /utilities/alpaka/src/apps/qml/OllamaSettingsPage.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("Ollama settings")
0014 
0015     Component.onCompleted: {
0016         serverUrl.text = AlpakaSettings.serverUrl;
0017     }
0018 
0019     FormCard.FormHeader {
0020         title: i18n("Ollama server settings")
0021     }
0022 
0023     FormCard.FormCard {
0024         FormCard.FormTextFieldDelegate {
0025             id: serverUrl
0026 
0027             label: i18n("Ollama server URL")
0028             placeholderText: "http://localhost:11434"
0029             onTextChanged: AlpakaSettings.serverUrl = text
0030         }
0031     }
0032 }