mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-04 10:04:35 +00:00
feat: add openai-compatible api models (#2683)
Signed-off-by: Shiranui <supersonic@livemail.tw> Signed-off-by: Jared Van Bortel <jared@nomic.ai> Co-authored-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
@@ -696,6 +696,7 @@ Rectangle {
|
||||
rightPadding: 60
|
||||
leftPadding: 60
|
||||
property string defaultModel: ""
|
||||
property string defaultModelName: ""
|
||||
function updateDefaultModel() {
|
||||
var i = comboBox.find(MySettings.userDefaultModel)
|
||||
if (i !== -1) {
|
||||
@@ -703,9 +704,14 @@ Rectangle {
|
||||
} else {
|
||||
defaultModel = comboBox.valueAt(0);
|
||||
}
|
||||
if (defaultModel !== "") {
|
||||
defaultModelName = ModelList.modelInfo(defaultModel).name;
|
||||
} else {
|
||||
defaultModelName = "";
|
||||
}
|
||||
}
|
||||
|
||||
text: qsTr("Load \u00B7 %1 (default) \u2192").arg(defaultModel);
|
||||
text: qsTr("Load \u00B7 %1 (default) \u2192").arg(defaultModelName);
|
||||
onClicked: {
|
||||
var i = comboBox.find(MySettings.userDefaultModel)
|
||||
if (i !== -1) {
|
||||
|
Reference in New Issue
Block a user