mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 01:42:53 -05:00
refac
This commit is contained in:
1 parent
e9dd05a4fa
commit
6e5f3fda3e
4 files changed
+223
-6
No files matched your search
@@ -26,6 +26,7 @@
|
||||
diffStats,
|
||||
type AgentView
|
||||
} from '$lib/components/chat/Messages/agentViews';
|
||||
import { toolCallLabel } from '$lib/components/chat/Messages/builtinToolLabels';
|
||||
import { settings } from '$lib/stores';
|
||||
|
||||
export let id: string = '';
|
||||
@@ -33,6 +34,7 @@
|
||||
type?: string;
|
||||
id?: string;
|
||||
name?: string;
|
||||
tool_id?: string;
|
||||
display_label?: string;
|
||||
running_label?: string;
|
||||
arguments?: string;
|
||||
@@ -206,9 +208,7 @@
|
||||
(!needsInput &&
|
||||
!isRejected &&
|
||||
!['pending', 'queued', 'requires_approval', 'incomplete'].includes(attributes.status ?? '')
|
||||
? isDone
|
||||
? attributes.display_label
|
||||
: attributes.running_label
|
||||
? toolCallLabel(attributes, isDone, isError, $i18n.t)
|
||||
: '');
|
||||
$: viewOutput = view ? agentViewOutput(view) : '';
|
||||
$: editStats =
|
||||
|
||||
Reference in new issue
Block a user