mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: full context issue
This commit is contained in:
parent
5043e7fc8c
commit
c4832fdb70
1 changed files with 1 additions and 5 deletions
|
|
@ -827,11 +827,7 @@ async def chat_completion_files_handler(
|
|||
|
||||
if files := body.get("metadata", {}).get("files", None):
|
||||
# Check if all files are in full context mode
|
||||
all_full_context = all(
|
||||
item.get("context") == "full"
|
||||
for item in files
|
||||
if item.get("type") == "file"
|
||||
)
|
||||
all_full_context = all(item.get("context") == "full" for item in files)
|
||||
|
||||
queries = []
|
||||
if not all_full_context:
|
||||
|
|
|
|||
Loading…
Reference in a new issue