Skip to content

Fix file reference deletion and vision prompt #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions controller/transfer/cognition/minio_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def handle_cognition_file_upload(path_parts: List[str]):
or file_reference.state == enums.FileCachingState.RUNNING.value
or file_reference.state == enums.FileCachingState.COMPLETED.value
):
# file_reference is None or already processed in queue
print("File reference duplication error, file is already processed", flush=True)
if file_reference:
print(f"File reference id: {str(file_reference.id)}", flush=True)
print(f"File name: {file_reference.original_file_name}", flush=True)
return
file_reference.state = enums.FileCachingState.COMPLETED.value
general.commit()
Expand Down