Mohit0199 commited on
Commit
06043ab
·
verified ·
1 Parent(s): 108c733

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
Files changed (1) hide show
  1. 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
- } catch (error) {
 
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
  });