|
|
@@ -1,4 +1,5 @@
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
+import { getToken } from '/@/utils/auth';
|
|
|
|
|
|
enum Api {
|
|
|
unified = '/ventAI/api/chat',
|
|
|
@@ -50,6 +51,7 @@ export const unifiedStream = async (
|
|
|
const response = await fetch(Api.unified, {
|
|
|
method: 'POST',
|
|
|
body: formData,
|
|
|
+ headers: { 'X-Access-Token': getToken() },
|
|
|
});
|
|
|
|
|
|
if (!response.ok) {
|
|
|
@@ -130,6 +132,7 @@ export const reviewPdfStream = async (
|
|
|
const response = await fetch(Api.reviewPdf, {
|
|
|
method: 'POST',
|
|
|
body: formData,
|
|
|
+ headers: { 'X-Access-Token': getToken() },
|
|
|
});
|
|
|
|
|
|
if (!response.ok) {
|