docs: update readme.md

This commit is contained in:
zhayujie
2025-05-23 16:54:58 +08:00
parent a84f31d54a
commit 5ec909c565
5 changed files with 19 additions and 6 deletions

View File

@@ -186,7 +186,15 @@ class WebChannel(ChatChannel):
return f.read()
def startup(self):
print("\nWeb Channel is running, please visit http://localhost:9899/chat")
logger.info("""[WebChannel] 当前channel为web可修改 config.json 配置文件中的 channel_type 字段进行切换。全部可用类型为:
1. web: 网页
2. terminal: 终端
3. wechatmp: 个人公众号
4. wechatmp_service: 企业公众号
5. wechatcom_app: 企微自建应用
6. dingtalk: 钉钉
7. feishu: 飞书""")
logger.info("Web对话网页已运行, 请使用浏览器访问 http://localhost:9899/chat")
# 确保静态文件目录存在
static_dir = os.path.join(os.path.dirname(__file__), 'static')