Merge remote-tracking branch 'origin/feature/v1.3_主agent_rxd' into test

This commit is contained in:
rd
2025-09-01 14:44:10 +08:00

View File

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