mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-22 13:41:08 +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;
|
QSettings setting;
|
||||||
setting.sync();
|
setting.sync();
|
||||||
return setting.value("networkPort", default_serverChat).toInt();
|
return setting.value("networkPort", default_networkPort).toInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MySettings::setNetworkPort(int c)
|
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.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
|
ToolTip.visible: hovered
|
||||||
}
|
}
|
||||||
Label {
|
MySettingsLabel {
|
||||||
id: serverPortLabel
|
id: serverPortLabel
|
||||||
text: qsTr("Server Port (Requires restart):")
|
text: qsTr("API Server Port (Requires restart):")
|
||||||
color: theme.textColor
|
|
||||||
font.pixelSize: theme.fontSizeLarge
|
|
||||||
Layout.row: 9
|
Layout.row: 9
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
}
|
}
|
||||||
MyTextField {
|
MyTextField {
|
||||||
|
id: serverPortField
|
||||||
text: MySettings.networkPort
|
text: MySettings.networkPort
|
||||||
color: theme.textColor
|
color: theme.textColor
|
||||||
font.pixelSize: theme.fontSizeLarge
|
font.pixelSize: theme.fontSizeLarge
|
||||||
@ -284,7 +283,7 @@ MySettingsTab {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Accessible.role: Accessible.EditableText
|
Accessible.role: Accessible.EditableText
|
||||||
Accessible.name: nServerPortLabel.text
|
Accessible.name: serverPortField.text
|
||||||
Accessible.description: ToolTip.text
|
Accessible.description: ToolTip.text
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
Loading…
Reference in New Issue
Block a user