Handle legacy 'context' attachments (#16687)
This commit is contained in:
parent
b617cfd289
commit
c9c1972e2c
5 changed files with 39 additions and 2 deletions
|
|
@ -94,6 +94,17 @@
|
|||
attachmentIndex: index,
|
||||
textContent: attachment.content
|
||||
});
|
||||
} else if (attachment.type === 'context') {
|
||||
// Legacy format from old webui - treat as text file
|
||||
items.push({
|
||||
id: `attachment-${index}`,
|
||||
name: attachment.name,
|
||||
type: 'text',
|
||||
isImage: false,
|
||||
attachment,
|
||||
attachmentIndex: index,
|
||||
textContent: attachment.content
|
||||
});
|
||||
} else if (attachment.type === 'audioFile') {
|
||||
items.push({
|
||||
id: `attachment-${index}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue