index.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <script>
  5. MathJax = {
  6. tex: { inlineMath: [['$', '$'], ['\\\\(', '\\\\)']] }
  7. };
  8. </script>
  9. <script id="MathJax-script" src="https://raye.mistivia.com/mathjax/tex-mml-chtml.js"></script>
  10. <meta charset="UTF-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  12. <title>Lite AI Chat</title>
  13. </head>
  14. <body class="font-sans h-screen flex flex-col max-w-5xl m-auto">
  15. <!-- header -->
  16. <div class="p-8 bg-gray-100">
  17. <select class="modes bg-white p-4 rounded-lg text-lg" id="model-selector"></select>
  18. </div>
  19. <!-- messages -->
  20. <div class="p-6 my-2 flex-1 overflow-y-auto" id="message-container">
  21. </div>
  22. <!-- input area -->
  23. <div class="flex p-4 my-2">
  24. <textarea class="flex-1 m-2 p-4 border-gray-200 outline-none resize-none border rounded-lg"
  25. placeholder="Input Message..." rows="3" id="input-box"
  26. ></textarea>
  27. <div class="flex flex-col">
  28. <button class="rounded-lg py-4 px-8 bg-gray-200 hover:bg-gray-300 m-2" id="send-button">Send</button>
  29. <button class="rounded-lg py-4 px-8 bg-gray-200 hover:bg-gray-300 m-2" id="stop-button">Stop</button>
  30. </div>
  31. </div>
  32. <script type="module" src="/src/main.js"></script>
  33. </body>
  34. </html>