mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-01 19:50:41 +02:00
refac
This commit is contained in:
@@ -502,10 +502,17 @@
|
||||
return;
|
||||
}
|
||||
|
||||
const res = await resolveChatMessageToolCall(localStorage.token, $chatId, messageId, callId, 'answer', {
|
||||
answers,
|
||||
timed_out: timedOut
|
||||
}).catch(async (error) => {
|
||||
const res = await resolveChatMessageToolCall(
|
||||
localStorage.token,
|
||||
$chatId,
|
||||
messageId,
|
||||
callId,
|
||||
'answer',
|
||||
{
|
||||
answers,
|
||||
timed_out: timedOut
|
||||
}
|
||||
).catch(async (error) => {
|
||||
toast.error(`${error}`);
|
||||
await loadChat();
|
||||
});
|
||||
|
||||
@@ -316,11 +316,11 @@
|
||||
{preview}
|
||||
{compactPreview}
|
||||
{editCodeBlock}
|
||||
{onTaskClick}
|
||||
{sourceIds}
|
||||
{onSourceClick}
|
||||
{onToolCallResolved}
|
||||
/>
|
||||
{onTaskClick}
|
||||
{sourceIds}
|
||||
{onSourceClick}
|
||||
{onToolCallResolved}
|
||||
/>
|
||||
</blockquote>
|
||||
{/if}
|
||||
{:else if token.type === 'list'}
|
||||
|
||||
@@ -193,11 +193,11 @@
|
||||
content={detailToken.text}
|
||||
{done}
|
||||
{save}
|
||||
{preview}
|
||||
{compactPreview}
|
||||
{editCodeBlock}
|
||||
{onToolCallResolved}
|
||||
/>
|
||||
{preview}
|
||||
{compactPreview}
|
||||
{editCodeBlock}
|
||||
{onToolCallResolved}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Collapsible>
|
||||
|
||||
Reference in New Issue
Block a user