enh: allow direct file upload to knowledge attachment

This commit is contained in:
Timothy Jaeryang Baek
2025-07-19 14:50:36 +04:00
parent 37c2fb0aa8
commit 157daa6def
3 changed files with 161 additions and 6 deletions
@@ -226,7 +226,7 @@
filterIds = model?.meta?.filterIds ?? [];
actionIds = model?.meta?.actionIds ?? [];
knowledge = (model?.meta?.knowledge ?? []).map((item) => {
if (item?.collection_name) {
if (item?.collection_name && item?.type !== 'file') {
return {
id: item.collection_name,
name: item.name,