mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00
4.8.1 test-fix (#1561)
This commit is contained in:
@@ -2,7 +2,6 @@ import { SseResponseEventEnum } from '@fastgpt/global/core/workflow/runtime/cons
|
||||
import { getErrText } from '@fastgpt/global/common/error/utils';
|
||||
import type { ChatHistoryItemResType } from '@fastgpt/global/core/chat/type.d';
|
||||
import type { StartChatFnProps } from '@/components/ChatBox/type.d';
|
||||
import { getToken } from '@/web/support/user/auth';
|
||||
import { DispatchNodeResponseKeyEnum } from '@fastgpt/global/core/workflow/runtime/constants';
|
||||
import dayjs from 'dayjs';
|
||||
import {
|
||||
@@ -117,8 +116,7 @@ export const streamFetch = ({
|
||||
const requestData = {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
token: getToken()
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
signal: abortCtrl.signal,
|
||||
body: JSON.stringify({
|
||||
|
Reference in New Issue
Block a user