Perf ui detail (#2775)

* perf: tool response tip

* perf: image extract

* perf: user question tool desc

* fix: simple mode load app module

* perf: simple mode plugin version

* perf: share page reload

* refresh simple mode data
This commit is contained in:
Archer
2024-09-24 18:04:11 +08:00
committed by GitHub
parent 434c03c955
commit afd2c394d8
14 changed files with 43 additions and 60 deletions

View File

@@ -255,17 +255,6 @@ export const runToolWithFunctionCall = async (
];
// console.log(tokens, 'tool');
// Run tool status
if (node.showStatus) {
workflowStreamResponse?.({
event: SseResponseEventEnum.flowNodeStatus,
data: {
status: 'running',
name: node.name
}
});
}
// tool assistant
const toolAssistants = toolsRunResponse
.map((item) => {

View File

@@ -275,17 +275,6 @@ export const runToolWithPromptCall = async (
};
})();
// Run tool status
if (node.showStatus) {
workflowStreamResponse?.({
event: SseResponseEventEnum.flowNodeStatus,
data: {
status: 'running',
name: node.name
}
});
}
// 合并工具调用的结果,使用 functionCall 格式存储。
const assistantToolMsgParams: ChatCompletionAssistantMessageParam = {
role: ChatCompletionRequestMessageRoleEnum.Assistant,

View File

@@ -311,17 +311,6 @@ export const runToolWithToolChoice = async (
// console.log(tokens, 'tool');
// Run tool status
if (node.showStatus) {
workflowStreamResponse?.({
event: SseResponseEventEnum.flowNodeStatus,
data: {
status: 'running',
name: node.name
}
});
}
// tool assistant
const toolAssistants = toolsRunResponse
.map((item) => {

View File

@@ -497,7 +497,7 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
result: Record<string, any>;
}> {
// push run status messages
if (node.showStatus) {
if (node.showStatus && !props.isToolCall) {
props.workflowStreamResponse?.({
event: SseResponseEventEnum.flowNodeStatus,
data: {