diff --git a/backend/app/main.py b/backend/app/main.py index 06615ff..42ee6a1 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -276,7 +276,7 @@ def extract_pdf_text_smart(pdf_content: bytes, max_chars: int = None) -> dict: } -BACKEND_VERSION = "1.1.0" +BACKEND_VERSION = "1.1.1" app = FastAPI(title="Checklist Inteligente API", version=BACKEND_VERSION) # S3/MinIO configuration @@ -3493,8 +3493,12 @@ Longitud: {response_length} # Llamar a la IA segĂșn el proveedor if ai_config.provider == 'openai': - from openai import OpenAI - client = OpenAI(api_key=ai_config.api_key) + import openai + + # Crear cliente sin argumentos adicionales que puedan causar conflicto + client = openai.OpenAI( + api_key=ai_config.api_key + ) response = client.chat.completions.create( model=ai_config.model_name or "gpt-4",