Spaces:
Running
Running
okay now when selecting model and entering api key user is gettin this message Model selected successfully. You can now start chatting! along with they should also get the instruction (warning type) message that if they refresh or reloads the page they will loose their currnet data and like chat history and api key and have to again enter api key
Browse files- index.html +2 -1
index.html
CHANGED
|
@@ -320,7 +320,8 @@ const settingsBtn = document.getElementById('settingsBtn');
|
|
| 320 |
|
| 321 |
// Add confirmation message to chat
|
| 322 |
addMessage('system', 'Model selected successfully. You can now start chatting!');
|
| 323 |
-
|
|
|
|
| 324 |
addMessage('system', `Error verifying API key: ${error.message}`);
|
| 325 |
}
|
| 326 |
});
|
|
|
|
| 320 |
|
| 321 |
// Add confirmation message to chat
|
| 322 |
addMessage('system', 'Model selected successfully. You can now start chatting!');
|
| 323 |
+
addMessage('warning', '⚠️ Warning: If you refresh or reload this page, you will lose your current chat history and need to re-enter your API key.');
|
| 324 |
+
} catch (error) {
|
| 325 |
addMessage('system', `Error verifying API key: ${error.message}`);
|
| 326 |
}
|
| 327 |
});
|