You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

_ChatTemplates.cshtml 1.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <script id="outputErrorTemplate" type="text/html">
  2. <i class="form-control text-danger">{{text}}</i>
  3. </script>
  4. <script id="outputInfoTemplate" type="text/html">
  5. <i class="form-control text-success">{{text}}</i>
  6. </script>
  7. <script id="outputUserTemplate" type="text/html">
  8. <div class="d-flex flex-row form-control bg-light">
  9. <div class="m-2 me-4">
  10. <img src="~/image/human.png" width="60"/>
  11. </div>
  12. <div class="d-flex flex-column flex-fill justify-content-between">
  13. <span class="w-100" style="resize:none" >{{text}}</span>
  14. <div class="d-flex justify-content-end">
  15. <i>{{date}}</i>
  16. </div>
  17. </div>
  18. </div>
  19. </script>
  20. <script id="outputBotTemplate" type="text/html">
  21. <div class="d-flex flex-row form-control">
  22. <div class="m-2 me-4">
  23. <img src="~/image/robot.png" width="60"/>
  24. </div>
  25. <div id="{{id}}" class="d-flex flex-column flex-fill justify-content-between">
  26. <span class="content">
  27. <img src="~/image/loading.gif" width="30" />
  28. </span>
  29. <div class="d-flex justify-content-end">
  30. <div class="d-flex flex-column align-items-end">
  31. <i class="date"></i>
  32. <i>
  33. <small class="signature"></small>
  34. </i>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </script>
  40. <script id="sessionDetailsTemplate" type="text/html">
  41. <div>
  42. <small>Session Details </small>
  43. </div>
  44. <div>
  45. <i>Model: </i>
  46. <span>{{model}}</span>
  47. </div>
  48. <div>
  49. <i>Prompt: </i>
  50. <span>{{prompt}}</span>
  51. </div>
  52. <div>
  53. <i>Parameters: </i>
  54. <span>{{parameter}}</span>
  55. </div>
  56. </script>