mirror of
https://github.com/open-webui/computer.git
synced 2026-11-29 00:21:47 -05:00
refac
This commit is contained in:
1 parent
7289c077a8
commit
759ffd1b2d
4 files changed
+54
-57
No files matched your search
@@ -177,6 +177,8 @@
|
||||
return _t('chat.tool.checkTask', { id: args.task_id || '?' });
|
||||
case 'kill_task':
|
||||
return _t('chat.tool.killTask', { id: args.task_id || '?' });
|
||||
case 'image_generate':
|
||||
return args.image || args.images?.length ? 'Edit image' : 'Generate image';
|
||||
case 'web_search':
|
||||
return _t('chat.tool.webSearch', { query: args.query || '?' });
|
||||
case 'read_url': {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
const isRejected = $derived(item.status === 'rejected');
|
||||
const isPending = $derived(item.status === 'pending');
|
||||
const imageToolOutput = $derived.by(() => {
|
||||
if (!['generate_image', 'edit_image'].includes(toolName) || !pairedOutput?.output) {
|
||||
if (toolName !== 'image_generate' || !pairedOutput?.output) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user