config.example.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # 应用配置示例文件
  2. # 复制此文件为 config.yaml 并填入实际配置
  3. app:
  4. name: shudao-chat-py
  5. host: 0.0.0.0
  6. port: 22000
  7. debug: true
  8. # MySQL数据库配置
  9. database:
  10. user: root
  11. password: "your_password"
  12. host: your_host
  13. port: 21000
  14. database: shudao
  15. pool_size: 100
  16. max_overflow: 10
  17. pool_recycle: 3600
  18. # DeepSeek配置
  19. deepseek:
  20. api_key: your_api_key
  21. api_url: https://api.deepseek.com
  22. # 阿里大模型配置
  23. qwen3:
  24. api_url: http://your_host:8000
  25. model: Qwen3-30B-A3B-Instruct-2507
  26. # 意图识别模型配置
  27. intent:
  28. api_url: http://your_host:8000
  29. model: Qwen2.5-1.5B-Instruct
  30. # YOLO API配置
  31. yolo:
  32. base_url: http://your_host:18080
  33. # 搜索API配置
  34. search:
  35. api_url: http://localhost:24000/api/search
  36. heartbeat_url: http://localhost:24000/health
  37. # Dify Workflow配置
  38. dify:
  39. workflow_url: http://your_host:8000/v1/workflows/run
  40. workflow_id: your_workflow_id
  41. auth_token: your_auth_token
  42. # 基础URL配置
  43. base_url: https://your_domain.com:22000
  44. # Token验证API配置
  45. auth:
  46. api_url: http://127.0.0.1:28004/api/auth/verify
  47. # OSS配置
  48. oss:
  49. access_key_id: your_access_key_id
  50. access_key_secret: your_access_key_secret
  51. bucket: your_bucket
  52. endpoint: your_endpoint
  53. parse_encrypt_key: your_encrypt_key