Files
Fay/system.conf.bak
guo zebin 74b49ae41c refactor: 大小模型逻辑重构 + 单模型模式 + 多处优化
核心改动(大小模型重构):
- 删死代码约 750 行:LangGraph 工作流、本地知识库、ltp_mode、nlp_cemotion、__check_and_clear_chroma_db、QAService Persona/command 分支
- 命名修复:planner -> judge(闲聊判断器)
- 删除 80 字兜底核实和 kb_search 硬编码优先
- 新增单模型模式:未配置 big_model_engine 时同步执行工具循环
- 重写 docs/Prompt设计文档.md

其他改动:
- 配置中心 URL 更换为 124.220.24.49:5500
- recorder.py 录音非 16kHz 时重采样到 16kHz
- fay_booter.py 远程音频连接健壮性修复(recv 空字节/异常退出/socket 关闭/心跳批量清理)
- mcp_service.py 修复(_serialize_mcp_result 递归序列化、add_mcp_server 用 new_id、werkzeug 多线程替代 gevent)
- remote_audio_key0.py 按键通话自动开关唤醒词
- 打包默认配置加 big_model_*/embedding_* 字段,system.conf.bak 统一 asr_mode
- 新增 packaging/ 打包脚本、fay.spec、samples/、requirements-legacy.txt

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-06 19:23:44 +08:00

66 lines
2.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[key]
#funasr / ali / sensevoice
#建议使用funasr,请依照asr/funasr/README>md的说明启动
asr_mode = funasr
#ASR二选一(需要运行fay/test/funasr服务)集成达摩院asr项目、感谢中科大脑算法工程师张聪聪提供集成代码
local_asr_ip=127.0.0.1
local_asr_port=10197
# ASR二选一(第1次运行建议用这个,免费3个月), 阿里云 实时语音识别 服务密钥(必须)https://ai.aliyun.com/nls/trans
ali_nls_key_id=
ali_nls_key_secret=
ali_nls_app_key=
#tts类型(切换请重新选择所需要的声音)azure、ali、gptsovits、volcano、gptsovits_v3
tts_module=ali
# 微软 文字转语音 服务密钥(非必须,使用可产生不同情绪的音频)https://azure.microsoft.com/zh-cn/services/cognitive-services/text-to-speech/
ms_tts_key=
ms_tts_region=
# 阿里云 文字转语音 服务密钥 https://ai.aliyun.com/nls/trans
ali_tss_key_id=
ali_tss_key_secret=
ali_tss_app_key=
# Doubao-语音合成 服务密钥 https://www.volcengine.com/product/voice-tech
volcano_tts_appid=
volcano_tts_access_token=
volcano_tts_cluster=volcano_tts
#可为空,为空时读取选择的音色
volcano_tts_voice_type=
#key
#小模型(日常对话/工具编排使用)api key
gpt_api_key=
#小模型 base url 如:https://api.openai.com/v1、https://rwkv.ai-creator.net/chntuned/v1、https://api.fastgpt.in/api/v1、https://api.moonshot.cn/v1
gpt_base_url=
#小模型 model engine 如:glm4、deepseek、qwen3-4b等
gpt_model_engine=
#大模型(复杂推理/核实场景使用,未配置时降级为小模型)
#大模型 model engine 如:MiniMax-M2.7、gpt-4o、deepseek-r1等
big_model_engine=
#大模型 base url(留空则复用小模型的 gpt_base_url
big_model_base_url=
#大模型 api key(留空则复用小模型的 gpt_api_key
big_model_api_key=
# Embedding 模型配置
# Embedding 模型名称,如 text-embedding-qwen3-embedding-0.6b、BAAI/bge-large-zh-v1.5
embedding_api_model=
# Embedding 服务 base url(可单独配置;留空则复用小模型的 gpt_base_urlkey 始终复用 gpt_api_key
embedding_base_url=
#gpt(fastgpt)代理(可为空,填写例子:127.0.0.1:7890)
proxy_config=
#启动模式common、web(服务器或docker请使用web方式,通过http://127.0.0.1:5000控制)
start_mode=web
#服务器主动地址
fay_url=http://127.0.0.1:5000