.env.example 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # InnoCore AI Configuration
  2. # LLM Provider Configuration
  3. # 选择一个提供商: openai, dashscope, modelscope
  4. # OpenAI API Configuration
  5. OPENAI_API_KEY=your_openai_api_key_here
  6. OPENAI_BASE_URL=https://api.openai.com/v1
  7. # 可选模型: gpt-3.5-turbo, gpt-4, gpt-4-turbo-preview
  8. # 阿里云灵积 DashScope (推荐用于 Qwen 系列)
  9. # DASHSCOPE_API_KEY=your_dashscope_api_key
  10. # LLM_PROVIDER=dashscope
  11. # LLM_MODEL=qwen-turbo # 可选: qwen-turbo, qwen-plus, qwen-max
  12. # ModelScope (需要本地部署或使用 API)
  13. # MODELSCOPE_API_KEY=your_modelscope_api_key
  14. # LLM_PROVIDER=modelscope
  15. # LLM_MODEL=qwen/Qwen2.5-7B-Instruct
  16. # Database Configuration
  17. DATABASE_URL=sqlite:///./innocore.db
  18. # Redis Configuration (optional)
  19. REDIS_URL=redis://localhost:6379
  20. # Security
  21. SECRET_KEY=your_secret_key_here_change_this_in_production
  22. ALGORITHM=HS256
  23. ACCESS_TOKEN_EXPIRE_MINUTES=30
  24. # Application Settings
  25. DEBUG=True
  26. LOG_LEVEL=INFO
  27. HOST=0.0.0.0
  28. PORT=8000
  29. # Vector Database
  30. VECTOR_DB_PATH=./data/vector_db
  31. # File Storage
  32. UPLOAD_DIR=./data/uploads
  33. PAPERS_DIR=./data/papers
  34. # External APIs
  35. CROSSREF_API=https://api.crossref.org
  36. GOOGLE_SCHOLAR_API=https://serpapi.com/search
  37. # Agent Configuration
  38. HUNTER_AGENT_ENABLED=True
  39. MINER_AGENT_ENABLED=True
  40. COACH_AGENT_ENABLED=True
  41. VALIDATOR_AGENT_ENABLED=True
  42. # Performance Settings
  43. MAX_CONCURRENT_TASKS=5
  44. CACHE_TTL=3600
  45. REQUEST_TIMEOUT=30