Skip to content

Commit

Permalink
Optimize conversation when uploading attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
kuschzzp authored Feb 14, 2025
1 parent 754d5ea commit 2b3ca94
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/db/services/dialog_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ def chat(dialog, messages, stream=True, **kwargs):
attachments = kwargs["doc_ids"].split(",") if "doc_ids" in kwargs else None
if "doc_ids" in messages[-1]:
attachments = messages[-1]["doc_ids"]
for m in messages[:-1]:
if "doc_ids" in m:
attachments.extend(m["doc_ids"])

create_retriever_ts = timer()

Expand Down

0 comments on commit 2b3ca94

Please sign in to comment.