-
Notifications
You must be signed in to change notification settings - Fork 96
实现会话和后台服务调用的思路 #98
MicalLee0415
started this conversation in
Ideas
实现会话和后台服务调用的思路
#98
-
问题:使用过程中,有一些场景想要不进入shell的情况下调用aish,获取aish+大模型分析的结果,当前aish还不能支持。
思路:
方案一:HTTP API 服务,创建可以启动监听服务的类,暴露rest接口,外部工具可以直接调用;
方案二:沿着现有内置命令的思路,增加cli模式,比如aish query "调用XXXskill,获取当前天气"。
以上两个方案,额外要考虑单次调用和多轮调用的情况(多轮调用要设置会话的管理)
此外:因为调用涉及到外部,如何考虑安全?有哪些要注意的,例如不应泄露用户api-key、密码、本地文件等,也可以只是提供服务,使用过程中给出风险提醒。
其他风险暂时还未想到,供大家讨论
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment