|
|
|
FLASK_DEBUG=true |
|
FLASK_SECRET_KEY=your-secret-key-here |
|
UPLOAD_FOLDER=output |
|
|
|
|
|
AI_PROVIDER=openai |
|
|
|
|
|
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_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_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_PROXY= # Optional proxy URL if needed |
|
|
|
|
|
PANDOC_PATH=pandoc # Path to pandoc if not in system PATH |
|
REFERENCE_DOCX=reference.docx # Path to custom reference Word template |
|
|
|
|
|
MAX_RETRIES=3 |
|
INITIAL_DELAY=1 |
|
BACKOFF_FACTOR=2 |
|
|
|
|
|
MODEL_CACHE_TTL=3600 # 1 hour cache for model lists |