mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
添加 Accept : EventStream 请求头
This commit is contained in:
@@ -95,7 +95,8 @@ export default {
|
|||||||
fetch('/systemapi/xboe/m/boe/case/ai/chat',{
|
fetch('/systemapi/xboe/m/boe/case/ai/chat',{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json',
|
||||||
|
"accept": "text/event-stream",
|
||||||
},
|
},
|
||||||
body: JSON.stringify(requestData)
|
body: JSON.stringify(requestData)
|
||||||
}).then(r=>{
|
}).then(r=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user