mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 04:54:12 +00:00
refac
This commit is contained in:
parent
81386e9b04
commit
9bc0de2c6a
@ -216,7 +216,7 @@
|
|||||||
} else {
|
} else {
|
||||||
message.statusHistory = [data];
|
message.statusHistory = [data];
|
||||||
}
|
}
|
||||||
} else if (type === 'citation') {
|
} else if (type === 'source') {
|
||||||
if (data?.type === 'code_execution') {
|
if (data?.type === 'code_execution') {
|
||||||
// Code execution; update existing code execution by ID, or add new one.
|
// Code execution; update existing code execution by ID, or add new one.
|
||||||
if (!message?.code_executions) {
|
if (!message?.code_executions) {
|
||||||
@ -235,7 +235,7 @@
|
|||||||
|
|
||||||
message.code_executions = message.code_executions;
|
message.code_executions = message.code_executions;
|
||||||
} else {
|
} else {
|
||||||
// Regular citation.
|
// Regular source.
|
||||||
if (message?.sources) {
|
if (message?.sources) {
|
||||||
message.sources.push(data);
|
message.sources.push(data);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user