File size: 2,018 Bytes
dcb2a99
1a7fda5
 
dcb2a99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1a7fda5
 
b59a236
1a7fda5
 
dcb2a99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1a7fda5
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Hugging Face Configuration
# Get your token from https://huggingface.co/settings/tokens
# Make sure to select "WRITE" access when creating the token
HUGGINGFACE_TOKEN=your_huggingface_token_here

# System Configuration
DEBUG_MODE=False
LOG_LEVEL=INFO
MAX_WORKERS=4
ASYNC_TIMEOUT=30

# Resource Limits
MAX_MEMORY_MB=8192
MAX_CPU_PERCENT=90
MAX_GPU_MEMORY_MB=4096
MAX_API_CALLS_PER_MINUTE=500

# Team Configuration
MIN_TEAM_SIZE=2
MAX_TEAM_SIZE=10
MAX_CONCURRENT_OBJECTIVES=5

# Error Recovery
MAX_RETRIES=3
RETRY_DELAY_SECONDS=5
ERROR_THRESHOLD=0.2

# Monitoring
METRICS_INTERVAL_SECONDS=60
HEALTH_CHECK_INTERVAL=30
PERFORMANCE_LOG_RETENTION_DAYS=7

# API Keys
# Get your Hugging Face token from https://huggingface.co/settings/tokens
# Required for uploading to Spaces - must have WRITE access
HUGGINGFACE_API_KEY=

# Optional API keys for additional features
OPENAI_API_KEY=your_openai_api_key
GROQ_API_KEY=your_groq_api_key

# Service Configuration
PORT=7860
HOST=0.0.0.0
DEBUG=True
ENVIRONMENT=development

# Database Configuration
DATABASE_URL=sqlite:///./ventures.db

# Model Configuration
MODEL_CACHE_DIR=./model_cache
DEFAULT_MODEL=gpt-4-turbo-preview

# Venture Configuration
MIN_PROFIT_TARGET=1000000
DEFAULT_CURRENCY=USD
RISK_TOLERANCE=medium

# API Configuration
API_VERSION=v1
API_PREFIX=/api/v1
CORS_ORIGINS=["*"]
MAX_REQUEST_SIZE=10MB

# Monitoring Configuration
ENABLE_METRICS=True
METRICS_PORT=9090
LOG_LEVEL=INFO

# Cache Configuration
REDIS_URL=redis://localhost:6379/0
CACHE_TTL=3600

# Security Configuration
JWT_SECRET=your_jwt_secret
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30

# Feature Flags
ENABLE_PORTFOLIO_OPTIMIZATION=True
ENABLE_MARKET_ANALYSIS=True
ENABLE_MONETIZATION_STRATEGY=True
ENABLE_VENTURE_ANALYSIS=True

# Note: After copying this file to .env:
# 1. Replace 'your_huggingface_token_here' with your actual token
# 2. Make sure your token has WRITE access for Spaces
# 3. Keep this .env.example file for reference
# 4. Never commit your actual .env file with real tokens