Commit 5e0b1470 by archer

perf: form format modules

parent 6027a966
...@@ -454,7 +454,7 @@ const ChatTest = ({ appId }: { appId: string }) => { ...@@ -454,7 +454,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
const history = messages.slice(-historyMaxLen - 2, -2); const history = messages.slice(-historyMaxLen - 2, -2);
// 流请求,获取数据 // 流请求,获取数据
const { responseText, rawSearch } = await streamFetch({ const { responseText } = await streamFetch({
url: '/api/chat/chatTest', url: '/api/chat/chatTest',
data: { data: {
history, history,
...@@ -468,7 +468,7 @@ const ChatTest = ({ appId }: { appId: string }) => { ...@@ -468,7 +468,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
abortSignal: controller abortSignal: controller
}); });
return { responseText, rawSearch }; return { responseText };
}, },
[modules, appId, appDetail.name] [modules, appId, appDetail.name]
); );
......
...@@ -58,12 +58,14 @@ export type VariableItemType = { ...@@ -58,12 +58,14 @@ export type VariableItemType = {
}; };
/* app module */ /* app module */
export type AppModuleInputItemType = { key: string; value?: any; connected?: boolean };
export type AppModuleOutputItemType = { key: string; targets: FlowOutputTargetItemType[] };
export type AppModuleItemType = { export type AppModuleItemType = {
moduleId: string; moduleId: string;
position?: XYPosition; position?: XYPosition;
flowType: `${FlowModuleTypeEnum}`; flowType: `${FlowModuleTypeEnum}`;
inputs: { key: string; value?: any; connected?: boolean }[]; inputs: AppModuleInputItemType[];
outputs: { key: string; targets: FlowOutputTargetItemType[] }[]; outputs: AppModuleOutputItemType[];
}; };
export type AppItemType = { export type AppItemType = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment