From e9a184f087d5e844e5882a49ec71c416ce82b366 Mon Sep 17 00:00:00 2001 From: ronalds Date: Fri, 5 Dec 2025 05:48:53 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Backend=20v1.2.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix aplicado: Corregido el acceso a las variables de configuración de MinIO/S3: --- backend/app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index ba5d731..24c00e7 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -278,7 +278,7 @@ def extract_pdf_text_smart(pdf_content: bytes, max_chars: int = None) -> dict: } -BACKEND_VERSION = "1.2.7" +BACKEND_VERSION = "1.2.8" app = FastAPI(title="Checklist Inteligente API", version=BACKEND_VERSION) # S3/MinIO configuration @@ -3496,13 +3496,13 @@ async def chat_with_ai_assistant( s3_client.upload_fileobj( BytesIO(file_content), - app_config.settings.MINIO_IMAGE_BUCKET, + S3_IMAGE_BUCKET, unique_filename, ExtraArgs={'ContentType': file_type} ) # Generar URL - image_url = f"{app_config.settings.MINIO_ENDPOINT}/{app_config.settings.MINIO_IMAGE_BUCKET}/{unique_filename}" + image_url = f"{S3_ENDPOINT}/{S3_IMAGE_BUCKET}/{unique_filename}" file_info['url'] = image_url print(f"🖼️ Imagen subida a S3: {unique_filename}") except Exception as upload_error: