https://github.com/c1pher-cn/tongyi_assistant
基于通义千问的HomeAssistant助手
https://github.com/c1pher-cn/tongyi_assistant
Last synced: 3 months ago
JSON representation
基于通义千问的HomeAssistant助手
- Host: GitHub
- URL: https://github.com/c1pher-cn/tongyi_assistant
- Owner: c1pher-cn
- License: gpl-3.0
- Created: 2024-01-21T14:31:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-22T13:41:22.000Z (over 1 year ago)
- Last Synced: 2024-01-22T17:49:42.482Z (over 1 year ago)
- Language: Python
- Size: 61.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tongyi_assistant
基于通义千问的HomeAssistant助手0.前言
目前暂不支持上下文,测试尝鲜版本日志打印的比较多,勿喷问就是后面再弄
智能家居控制部分还有点问题,阿里云的通义千问回复问题有时候有点迷,偶尔不按我的要求来关于大模型promot可以自己按需修改,在集成选项里;当前Prompt 模版里默认将三个区域的设备信息吐给大模型('餐厅','书房','客厅'),请自己按需修改,设备越多占用的token越多,注意控制总量,默认上限配置的1000
对你有帮助的话b站来一波三连,谢谢。
https://www.bilibili.com/read/cv29878099/1.HACS添加自定义存储库
HACS-> 右上角三个点-> 自定义存储库
存储库:
https://github.com/c1pher-cn/tongyi_assistant类型:
集成添加完成后在HACS页面里找到tongyi_assistant 点击下载
2.阿里云官网申请开通权限(目前免费)
阿里云上开通DashScope灵积模型服务,并获取api-key https://help.aliyun.com/zh/dashscope/developer-reference/activate-dashscope-and-create-an-api-key3.配置-集成-添加集成-搜tongyi_assistant-配置-添加api-key
4.配置-语音助手-添加助手

配置对话代理,完成

选择刚才创建的助手

智能家居控制部分还有点问题