config.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # 应用配置
  2. app:
  3. name: shudao-chat-py
  4. host: 0.0.0.0
  5. port: 22001
  6. debug: true
  7. # MySQL数据库配置
  8. database:
  9. user: root
  10. password: "88888888"
  11. host: 172.16.29.101
  12. port: 21000
  13. database: shudao
  14. pool_size: 100
  15. max_overflow: 10
  16. pool_recycle: 3600
  17. # DeepSeek配置
  18. deepseek:
  19. api_key: sk-28625cb3738844e190cee62b2bcb25bf
  20. api_url: https://api.deepseek.com
  21. # 本地大模型配置
  22. qwen3:
  23. api_url: http://172.16.35.50:8020
  24. model: /opt/Qwen3.5-122B-A10B
  25. # 意图识别模型配置
  26. intent:
  27. api_url: http://172.16.35.50:8020
  28. model: /opt/Qwen3.5-122B-A10B
  29. # YOLO API配置
  30. yolo:
  31. base_url: http://172.16.35.50:18080
  32. # 搜索API配置
  33. search:
  34. api_url: http://127.0.0.1:24000/api/search
  35. heartbeat_url: http://127.0.0.1:24000/api/health
  36. # Dify Workflow配置
  37. dify:
  38. workflow_url: http://172.16.35.50:8000/v1/workflows/run
  39. workflow_id: 4wfh1PPDderMtCeb
  40. auth_token: app-55CyO4lmDv1VeXK4QmFpt4ng
  41. # 基础URL配置
  42. base_url: https://aqai.shudaodsj.com:22000
  43. # Token验证API配置
  44. auth:
  45. api_url: http://127.0.0.1:28004/api/auth/verify
  46. # OSS配置
  47. oss:
  48. access_key_id: fnyfi2f368pbic74d8ll
  49. access_key_secret: jgqwk7sirqlz2602x2k7yx2eor0vii19wah6ywlv
  50. bucket: gdsc-ai-aqzs
  51. endpoint: http://172.16.17.52:8060
  52. parse_encrypt_key: jgqwk7sirqlz2602
  53. # 思考过程二次总结(方案三):不展示原始<think>长文,仅输出中文要点
  54. thinking_summary:
  55. enabled: true
  56. max_points: 5
  57. max_input_chars: 1500
  58. max_output_chars: 600
  59. temperature: 0.2
  60. # 语音服务配置(方案1:腾讯云直连后端,挂载在 shudao-chat-py)
  61. speech:
  62. enabled: true
  63. provider: tencent_cloud
  64. integration_mode: backend_direct
  65. backend_service: shudao-chat-py
  66. request_timeout_seconds: 60
  67. # 需要申请/开通的第三方能力
  68. procurement:
  69. required_cloud_products:
  70. - asr_sentence_recognition
  71. - asr_flash_file_recognition
  72. - tts_text_to_voice
  73. - tts_long_text
  74. required_credentials:
  75. - app_id
  76. - secret_id
  77. - secret_key
  78. optional_cloud_products:
  79. - cos
  80. notes:
  81. - sentence_recognition_for_audio_within_60s_and_3mb
  82. - flash_file_recognition_for_longer_audio_fallback
  83. - text_to_voice_for_default_tts
  84. - long_text_tts_for_content_over_150_chinese_chars
  85. # 腾讯云账号与接口入口
  86. tencent:
  87. app_id: "1258082136"
  88. secret_id: "AKIDtgFYdS2OVO1PZT8XfZEd7LK3XmlUyDDy"
  89. secret_key: "XoqdASfdMuEKAk5B2e1DArJXVDfsqY2G"
  90. region: "ap-chengdu"
  91. asr_endpoint: "asr.tencentcloudapi.com"
  92. tts_endpoint: "tts.tencentcloudapi.com"
  93. # 语音转文字:第一版优先一句话识别,超出范围时切录音文件识别极速版
  94. transcribe:
  95. enabled: true
  96. default_api: "SentenceRecognition"
  97. fallback_api: "CreateRecTask"
  98. engine_model_type: "16k_zh"
  99. source_type: 1
  100. voice_format: "wav"
  101. input_sample_rate: 16000
  102. max_audio_seconds: 60
  103. max_audio_size_mb: 3
  104. word_info: 0
  105. filter_dirty: 0
  106. filter_modal: 0
  107. filter_punc: 0
  108. convert_num_mode: 1
  109. hotword_list: ""
  110. hotword_id: ""
  111. customization_id: ""
  112. replace_text_id: ""
  113. # 语音播报:第一版优先基础语音合成,长文本时切长文本异步合成
  114. synthesize:
  115. enabled: true
  116. default_api: "TextToVoice"
  117. fallback_api: "CreateTtsTask"
  118. primary_language: 1
  119. voice_type: 1001
  120. sample_rate: 16000
  121. codec: "mp3"
  122. speed: 0.0
  123. volume: 0.0
  124. enable_subtitle: false
  125. segment_rate: 0
  126. emotion_category: ""
  127. emotion_intensity: 100
  128. basic_text_limit_chars: 150
  129. long_text_trigger_chars: 120
  130. long_text_max_chars: 100000
  131. long_text_codec: "mp3"
  132. callback_url: ""