mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: web/youtube attachements
This commit is contained in:
parent
ac0243e8b7
commit
487979859a
2 changed files with 7 additions and 4 deletions
|
|
@ -487,9 +487,12 @@ def get_sources_from_items(
|
|||
|
||||
if item.get("type") == "text":
|
||||
# Raw Text
|
||||
# Used during temporary chat file uploads
|
||||
# Used during temporary chat file uploads or web page & youtube attachements
|
||||
|
||||
if item.get("file"):
|
||||
if item.get("collection_name"):
|
||||
# If item has a collection name, use it
|
||||
collection_names.append(item.get("collection_name"))
|
||||
elif item.get("file"):
|
||||
# if item has file data, use it
|
||||
query_result = {
|
||||
"documents": [
|
||||
|
|
|
|||
|
|
@ -671,7 +671,7 @@
|
|||
console.log(url);
|
||||
|
||||
const fileItem = {
|
||||
type: 'doc',
|
||||
type: 'text',
|
||||
name: url,
|
||||
collection_name: '',
|
||||
status: 'uploading',
|
||||
|
|
@ -704,7 +704,7 @@
|
|||
console.log(url);
|
||||
|
||||
const fileItem = {
|
||||
type: 'doc',
|
||||
type: 'text',
|
||||
name: url,
|
||||
collection_name: '',
|
||||
status: 'uploading',
|
||||
|
|
|
|||
Loading…
Reference in a new issue