mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add model loading on url or key change for CLUSTER mode
This commit is contained in:
@ -2920,8 +2920,10 @@ $(document).ready(function(){
|
|||||||
$("#modelkey")[0].value = msg.key_value;
|
$("#modelkey")[0].value = msg.key_value;
|
||||||
if (msg.models_on_url) {
|
if (msg.models_on_url) {
|
||||||
$("#modelkey")[0].onblur = function () {socket.send({'cmd': 'Cluster_Key_Update', 'key': this.value, 'url': document.getElementById("modelurl").value});};
|
$("#modelkey")[0].onblur = function () {socket.send({'cmd': 'Cluster_Key_Update', 'key': this.value, 'url': document.getElementById("modelurl").value});};
|
||||||
|
$("#modelurl")[0].onblur = function () {socket.send({'cmd': 'Cluster_Key_Update', 'key': document.getElementById("modelkey").value, 'url': this.value});};
|
||||||
} else {
|
} else {
|
||||||
$("#modelkey")[0].onblur = function () {socket.send({'cmd': 'OAI_Key_Update', 'key': $('#modelkey')[0].value});};
|
$("#modelkey")[0].onblur = function () {socket.send({'cmd': 'OAI_Key_Update', 'key': $('#modelkey')[0].value});};
|
||||||
|
$("#modelurl")[0].onblur = null;
|
||||||
}
|
}
|
||||||
//if we're in the API list, disable to load button until the model is selected (after the API Key is entered)
|
//if we're in the API list, disable to load button until the model is selected (after the API Key is entered)
|
||||||
disableButtons([load_model_accept]);
|
disableButtons([load_model_accept]);
|
||||||
|
Reference in New Issue
Block a user