src/api/AiRetrievalView.ts
@@ -15,11 +15,23 @@
      params
    })
  },
  getChatDetail(params) {//对话检索
    return request({
      url: '/api-v1/v1/record/chat',
      method: 'post',
      params
    })
  },
  // getChatDetail(data) {//对话检索
  //   return request({
  //     url: '/api-v1/v1/record/chat',
  //     method: 'post',
  //     data,
  //     headers: {
  //       "Content-Type": "application/json",
  //       "Accept":"text/event-stream",
  //       "Cache-Control": "no-cache"
  //     },
  //   })
  // },
  getChatDetail(data) {
    return fetch("/api-v1/v1/record/chat", { // 使用代理路径
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify(data)
    }); // 直接返回 fetch 的 Promise
  }
}