mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-22 05:29:20 +00:00
Minor fixes to server port feature.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
fe653d1489
commit
59f99b7f21
@ -684,7 +684,7 @@ int MySettings::networkPort() const
|
||||
{
|
||||
QSettings setting;
|
||||
setting.sync();
|
||||
return setting.value("networkPort", default_serverChat).toInt();
|
||||
return setting.value("networkPort", default_networkPort).toInt();
|
||||
}
|
||||
|
||||
void MySettings::setNetworkPort(int c)
|
||||
|
@ -255,15 +255,14 @@ MySettingsTab {
|
||||
ToolTip.text: qsTr("WARNING: This enables the gui to act as a local REST web server(OpenAI API compliant) for API requests and will increase your RAM usage as well")
|
||||
ToolTip.visible: hovered
|
||||
}
|
||||
Label {
|
||||
MySettingsLabel {
|
||||
id: serverPortLabel
|
||||
text: qsTr("Server Port (Requires restart):")
|
||||
color: theme.textColor
|
||||
font.pixelSize: theme.fontSizeLarge
|
||||
text: qsTr("API Server Port (Requires restart):")
|
||||
Layout.row: 9
|
||||
Layout.column: 0
|
||||
}
|
||||
MyTextField {
|
||||
id: serverPortField
|
||||
text: MySettings.networkPort
|
||||
color: theme.textColor
|
||||
font.pixelSize: theme.fontSizeLarge
|
||||
@ -284,7 +283,7 @@ MySettingsTab {
|
||||
}
|
||||
}
|
||||
Accessible.role: Accessible.EditableText
|
||||
Accessible.name: nServerPortLabel.text
|
||||
Accessible.name: serverPortField.text
|
||||
Accessible.description: ToolTip.text
|
||||
}
|
||||
Rectangle {
|
||||
|
Loading…
Reference in New Issue
Block a user