Skip to content

Commit 4717a94

Browse files
committed
BUG FIX: Correctly displaying LLM name in InfoBox when swapping LLMs with HF-W server
1 parent e93cf27 commit 4717a94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web_app/templates/chat.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,6 +2854,12 @@ <h5>Additional Settings</h5>
28542854
hfSavePromise = handleHfWaitressChanges(hf_config) // Added to the promise chain only if the conditions are met!
28552855
.then(() => {
28562856
console.log("HF-Waitress server changes saved successfully.");
2857+
2858+
chatID = CHAT_ID;
2859+
chatID = " Chat ".concat(String(chatID))
2860+
display_chatid_and_model = String(chatID).concat(": ", String(hf_config.model_id))
2861+
document.getElementById('model_header').innerHTML = '';
2862+
document.getElementById('model_header').innerHTML = display_chatid_and_model;
28572863
})
28582864
.catch(error => {
28592865
errorHandler("saving HF-Waitress settings", "handleSaveChanges()", String(error.message)); // Catching the error will resolve the Promise and allow the rest of the code to continue!

0 commit comments

Comments
 (0)