assistant.js 455 B

123456789101112131415161718192021222324252627
  1. import request from '@/utils/request3rd'
  2. /**
  3. *
  4. * @param {*} data
  5. * @returns
  6. */
  7. export function getRecommendListByKeywords(data) {
  8. return request({
  9. url: `${window.GLOBAL_CONFIG.API_AI}llm/chat/knowledge_base_chat`,
  10. method: 'post',
  11. data
  12. })
  13. }
  14. /**
  15. *
  16. * @param {*} data
  17. * @returns
  18. */
  19. export function getTxtDataModel(data) {
  20. return request({
  21. url: `${window.GLOBAL_CONFIG.API_AI}llm/chat/chat`,
  22. method: 'post',
  23. data
  24. })
  25. }