This commit is contained in:
Timothy Jaeryang Baek
2026-08-22 08:43:46 -04:00
parent 1b3b9375bb
commit d17f06a235
5 changed files with 216 additions and 18 deletions
+6 -1
View File
@@ -1882,7 +1882,12 @@ async def chat_completion_files_handler(
__event_emitter__ = extra_params['__event_emitter__']
sources = []
if files := body.get('metadata', {}).get('files', None):
files = [
item
for item in (body.get('metadata', {}).get('files', None) or [])
if item.get('type') != 'filesystem'
]
if files:
# Check if all files are in full context mode
all_full_context = all(item.get('context') == 'full' for item in files)