index.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>SimpleChat LlamaCppEtal </title>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta name="message" content="Save Nature Save Earth" />
  8. <meta name="description" content="SimpleChat: trigger LLM web service endpoints /chat/completions and /completions, single/multi chat sessions" />
  9. <meta name="author" content="by Humans for All" />
  10. <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  11. <script type="importmap">
  12. {
  13. "imports": {
  14. "datautils": "./datautils.mjs",
  15. "ui": "./ui.mjs"
  16. }
  17. }
  18. </script>
  19. <script src="simplechat.js" type="module" defer></script>
  20. <link rel="stylesheet" href="simplechat.css" />
  21. </head>
  22. <body>
  23. <div class="samecolumn" id="fullbody">
  24. <div class="sameline" id="heading">
  25. <p class="heading flex-grow" > <b> SimpleChat </b> </p>
  26. <button id="settings">Settings</button>
  27. </div>
  28. <div id="sessions-div" class="sameline"></div>
  29. <hr>
  30. <div class="sameline">
  31. <label for="system-in">System</label>
  32. <textarea name="system" id="system-in" rows="2" placeholder="e.g. you are a helpful ai assistant, who provides concise answers" class="flex-grow"></textarea>
  33. </div>
  34. <hr>
  35. <div id="chat-div">
  36. <p> You need to have javascript enabled.</p>
  37. </div>
  38. <hr>
  39. <div class="sameline">
  40. <textarea id="user-in" class="flex-grow" rows="2" placeholder="enter your query to the ai model here" ></textarea>
  41. <button id="user-btn">submit</button>
  42. </div>
  43. </div>
  44. </body>
  45. </html>