feat: 请求增加requestid
This commit is contained in:
@ -3,6 +3,7 @@ import type { EventSourceMessage } from '@microsoft/fetch-event-source';
|
||||
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
||||
import { glsWithCatch } from '@/utils/stroage';
|
||||
import { BASE_PYTHON_URL } from '@/api/all/chat';
|
||||
import { genRandomId } from '@/utils/tools';
|
||||
|
||||
const DEFAULT_SSE_URL = `${BASE_PYTHON_URL}/api/agent/runs`;
|
||||
|
||||
@ -11,6 +12,7 @@ const SSE_HEADERS = {
|
||||
'Cache-Control': 'no-cache',
|
||||
Connection: 'keep-alive',
|
||||
Accept: 'text/event-stream',
|
||||
requestid: genRandomId(),
|
||||
};
|
||||
|
||||
interface SSEConfig {
|
||||
|
||||
Reference in New Issue
Block a user