代码问题

This commit is contained in:
2025-11-23 01:02:47 +08:00
parent 4377dc8dc8
commit 8f3a73433f
4 changed files with 17 additions and 12 deletions

View File

@@ -33,15 +33,16 @@ export const ChatMessageApi = {
attachmentUrls = []
} = options || {}
const token = getAccessToken()
let retryCount = 0
const maxRetries = 0 // 禁用自动重试
return fetchEventSource(`${SERVER_BASE_AI}/chat/message/send-stream`, {
method: 'post',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`
Authorization: `Bearer ${token}`,
'tenant-id': import.meta.env?.VITE_TENANT_ID
},
openWhenHidden: true,
body: JSON.stringify({