perf: form format modules

This commit is contained in:
archer
2023-07-23 14:36:06 +08:00
parent 6027a966d2
commit 5e0b147048
3 changed files with 68 additions and 196 deletions

View File

@@ -454,7 +454,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
const history = messages.slice(-historyMaxLen - 2, -2);
// 流请求,获取数据
const { responseText, rawSearch } = await streamFetch({
const { responseText } = await streamFetch({
url: '/api/chat/chatTest',
data: {
history,
@@ -468,7 +468,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
abortSignal: controller
});
return { responseText, rawSearch };
return { responseText };
},
[modules, appId, appDetail.name]
);