feat: 后端版本迁移修改
This commit is contained in:
@@ -96,7 +96,7 @@ Page({
|
||||
|
||||
request.stream('/plant/chat/stream', { query }, {
|
||||
onChunk: (res) => {
|
||||
const text = this._decode(res.data);
|
||||
const text = this._decode(res.chunk || res.data);
|
||||
|
||||
// Detect non-SSE JSON error (e.g. quota exceeded returns {code:7, msg:"..."})
|
||||
if (!text.startsWith('data: ')) {
|
||||
|
||||
Reference in New Issue
Block a user