mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
57bd08304e
commit
d9014b3483
3 changed files with 21 additions and 14 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue