.env.example 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Which search service to use, either 'duckduckgo', 'tavily', 'perplexity', Searxng
  2. SEARCH_API='duckduckgo'
  3. # LLM配置 (从HelloAgents继承,如需覆盖可在此配置)
  4. # 模型提供者
  5. LLM_PROVIDER=custom # Options: ollama, lmstudio, custom 其中ollama和lmstudio都是用于本地大模型配置,custom是用于自定义大模型配置[用于api调用]
  6. # 模型名称
  7. LLM_MODEL_ID=your-model-name
  8. # API密钥
  9. LLM_API_KEY=your-api-key-here
  10. # 服务地址
  11. LLM_BASE_URL=your-api-base-url
  12. # 超时时间(可选,默认60秒)
  13. LLM_TIMEOUT=60
  14. # 服务器配置
  15. HOST=0.0.0.0
  16. PORT=8000
  17. # CORS配置
  18. CORS_ORIGINS=http://localhost:5173,http://localhost:3000
  19. # 日志级别
  20. LOG_LEVEL=INFO
  21. # Web Search API Keys (choose one or both)
  22. # TAVILY_API_KEY=tvly-xxxxx # Get your key at https://tavily.com
  23. # PERPLEXITY_API_KEY=pplx-xxxxx # Get your key at https://www.perplexity.ai
  24. # For Searxng search, defaults to http://localhost:8888
  25. # SEARXNG_URL=
  26. # 本地模型配置(LMStudio/Ollama)
  27. # LLM_PROVIDER=lmstudio # Options: ollama, lmstudio
  28. # LOCAL_LLM=qwen_qwq-32b # Model name in LMStudio/Ollama
  29. # LMSTUDIO_BASE_URL=http://localhost:1234/v1 # LMStudio OpenAI-compatible API URL
  30. # OLLAMA_BASE_URL=http://localhost:11434 # the endpoint of the Ollama service, defaults to http://localhost:11434 if not set
  31. MAX_WEB_RESEARCH_LOOPS=3
  32. FETCH_FULL_PAGE=True