qsflDemo2.vue 1.1 KB

12345678910111213141516171819202122232425262728
  1. <template>
  2. <AiQAChat2
  3. :config="qaConfig"
  4. :create-dialogue-api="createQsAiDialogue"
  5. :send-chat-stream-api="sendQsAiChatMessageStream"
  6. />
  7. </template>
  8. <script setup>
  9. import AiQAChat2 from './components/AiQAChat2.vue'
  10. import { createQsAiDialogue, sendQsAiChatMessageStream } from '@/api/qsAiQuestions.js'
  11. const qaConfig = Object.freeze({
  12. roleId: 264,
  13. enableFileUpload: true,
  14. maxFiles: 3,
  15. maxFileSizeMB: 10,
  16. maxTotalFileSizeMB: 15,
  17. invalidFileNamePattern: /[\\/:*?"<>|\s]/,
  18. invalidFileNameMessage: '文件名不能包含空格或\\ / : * ? " < > | 等非法字符,请修改后重试',
  19. enableReferenceScript: true,
  20. referenceScriptMaxLength: 2000,
  21. maxInputLength: 1000,
  22. uploadHint: '支持图片、PDF、Word、Excel 文件;单次最多上传 3 个附件,单个文件不超过 10 MB,附件总大小不超过 15 MB。文档内容过长时,系统将仅分析前 20,000 个字符。',
  23. inputHint: '请输入或粘贴学员拜访记录文字稿,最多 1,000 个字符。',
  24. suggestions: ['请对附件中学员拜访记录进行评分。']
  25. })
  26. </script>