app.js 947 B

12345678910111213141516171819202122232425262728293031323334353637
  1. module.exports = {
  2. AI_HOST: 'https://qianfan.baidubce.com',
  3. // 小程序 / APP请求配置
  4. // 请求域名 格式: https://您的域名
  5. HTTP_REQUEST_URL: `https://aichat.nanodreamtech.com`,
  6. // H5请求配置
  7. // #ifdef H5
  8. // H5接口是浏览器地址,非单独部署不用修改
  9. // HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host,
  10. // #endif
  11. // 以下配置在不做二开的前提下,不需要做任何的修改
  12. HEADER: {
  13. 'content-type': 'application/json',
  14. //#ifdef H5
  15. 'Form-type': navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 ? 'wechat' : 'h5',
  16. //#endif
  17. //#ifdef MP
  18. 'Form-type': 'routine',
  19. //#endif
  20. //#ifdef APP-VUE
  21. 'Form-type': 'app',
  22. //#endif
  23. },
  24. // 回话密钥名称 请勿修改此配置
  25. TOKENNAME: 'Authori-zation',
  26. // 缓存时间 0 永久
  27. EXPIRE: 0,
  28. //分页最多显示条数
  29. LIMIT: 10,
  30. // 请求超时限制 默认10秒
  31. TIMEOUT: 10000
  32. }