perf: response store
This commit is contained in:
@@ -454,7 +454,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
|
||||
const history = messages.slice(-historyMaxLen - 2, -2);
|
||||
|
||||
// 流请求,获取数据
|
||||
const { responseText } = await streamFetch({
|
||||
const { responseText, responseData } = await streamFetch({
|
||||
url: '/api/chat/chatTest',
|
||||
data: {
|
||||
history,
|
||||
@@ -468,7 +468,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
|
||||
abortSignal: controller
|
||||
});
|
||||
|
||||
return { responseText };
|
||||
return { responseText, responseData };
|
||||
},
|
||||
[modules, appId, appDetail.name]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user