74 lines
1.7 KiB
JSON
74 lines
1.7 KiB
JSON
{
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"api_port": 8000,
|
|
"web_port": 5000,
|
|
"workers": 4,
|
|
"debug": false,
|
|
"environment": "production"
|
|
},
|
|
"models": {
|
|
"fast": {
|
|
"name": "phi",
|
|
"description": "Phi 2.7B - Rápido",
|
|
"vram_required_gb": 2,
|
|
"tokens_per_second": 50
|
|
},
|
|
"power": {
|
|
"name": "deepseek-coder:33b",
|
|
"description": "DeepSeek 33B - Potente",
|
|
"vram_required_gb": 18,
|
|
"tokens_per_second": 6
|
|
}
|
|
},
|
|
"gpu": {
|
|
"memory_fraction": 0.9,
|
|
"max_batch_size": 8,
|
|
"enable_cuda": true,
|
|
"device_id": 0
|
|
},
|
|
"logging": {
|
|
"level": "INFO",
|
|
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
"log_dir": "./logs",
|
|
"max_file_size_mb": 10,
|
|
"backup_count": 10
|
|
},
|
|
"database": {
|
|
"type": "sqlite",
|
|
"path": "./data/llm_history.db",
|
|
"enable_history": true
|
|
},
|
|
"security": {
|
|
"enable_rate_limit": true,
|
|
"rate_limit_requests": 100,
|
|
"rate_limit_period_seconds": 60,
|
|
"require_api_key": false,
|
|
"allowed_origins": ["*"]
|
|
},
|
|
"workspace": {
|
|
"path": "./workspace",
|
|
"max_file_size_mb": 100,
|
|
"allowed_extensions": [".py", ".js", ".html", ".css", ".json", ".txt", ".md"]
|
|
},
|
|
"api_endpoints": {
|
|
"health": "/api/health",
|
|
"models": "/api/models",
|
|
"chat": "/api/chat",
|
|
"files": "/api/files",
|
|
"metrics": "/api/metrics"
|
|
},
|
|
"ollama": {
|
|
"host": "localhost",
|
|
"port": 11434,
|
|
"timeout_seconds": 300,
|
|
"auto_download_models": true
|
|
},
|
|
"features": {
|
|
"enable_git_commit": true,
|
|
"enable_code_execution": true,
|
|
"enable_file_operations": true,
|
|
"enable_browser_testing": true,
|
|
"enable_metrics": true
|
|
}
|
|
} |