diff --git a/services/xai_upload_utils.py b/services/xai_upload_utils.py index c4e5113..a241e48 100644 --- a/services/xai_upload_utils.py +++ b/services/xai_upload_utils.py @@ -107,14 +107,6 @@ class XAIUploadUtils: # File content unchanged (hash match) → kein Re-Upload nötig if ai_status == 'synced' and ai_sync_hash and blake3_hash and ai_sync_hash == blake3_hash: if ai_file_id: - # Custom metadata (fields) können nach dem Upload nicht mehr geändert werden. - # Nur Dateiname ist über PUT /v1/files/{id} änderbar. - current_name = doc.get('dokumentName') or doc.get('name', '') - if current_name and ai_file_id: - try: - await xai.rename_file(ai_file_id, current_name) - except Exception as e: - self._log.warn(f" ⚠️ Rename fehlgeschlagen (non-fatal): {e}") self._log.info(f" ✅ Unverändert – kein Re-Upload (hash match)") else: self._log.info(f" ⏭️ Skipped (hash match, kein aiFileId)")