# Application Settings FLASK_DEBUG=true FLASK_SECRET_KEY=your-secret-key-here UPLOAD_FOLDER=output # AI Provider Selection (options: g4f, openai, huggingface, together) AI_PROVIDER=openai # OpenAI Configuration OPENAI_API_KEY=your-openai-api-key-here OPENAI_ORG_ID=your-organization-id-if-applicable OPENAI_BASE_URL=https://mfoud444-docsp.hf.space/v1 # Change for Azure/LocalAI/other proxies OPENAI_MAX_TOKENS=1000 OPENAI_TEMPERATURE=0.7 # HuggingFace Configuration HUGGINGFACE_API_KEY=your-hf-api-key-here HUGGINGFACE_API_URL=https://api-inference.huggingface.co/models HUGGINGFACE_MAX_TOKENS=1000 HUGGINGFACE_TEMPERATURE=0.7 # Together AI Configuration TOGETHER_API_KEY=your-together-api-key-here TOGETHER_API_URL=https://api.together.xyz/v1/completions TOGETHER_MAX_TOKENS=1000 TOGETHER_TEMPERATURE=0.7 # g4f Configuration (usually doesn't need API keys) G4F_PROXY= # Optional proxy URL if needed # Pandoc Configuration (for Word document conversion) PANDOC_PATH=pandoc # Path to pandoc if not in system PATH REFERENCE_DOCX=reference.docx # Path to custom reference Word template # Rate Limiting (optional) MAX_RETRIES=3 INITIAL_DELAY=1 BACKOFF_FACTOR=2 # Caching Settings MODEL_CACHE_TTL=3600 # 1 hour cache for model lists