perf: requestid

This commit is contained in:
rd
2025-09-01 14:44:01 +08:00
parent 8fff4c1ef1
commit 8b44be2c7e

View File

@ -12,7 +12,6 @@ const SSE_HEADERS = {
'Cache-Control': 'no-cache',
Connection: 'keep-alive',
Accept: 'text/event-stream',
requestid: genRandomId(),
};
interface SSEConfig {
@ -53,6 +52,7 @@ export default async (config: SSEConfig, url: string = DEFAULT_SSE_URL): Promise
...SSE_HEADERS,
Authorization: glsWithCatch('accessToken'),
'enterprise-id': store.enterpriseInfo?.id?.toString(),
requestid: genRandomId(),
...headers,
},
body,