config.yaml 3.8 KB

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