工具无法正常调用 #335
Replies: 25 comments 4 replies
-
我也有同样的问题,即使他第二次模型返回了tool_call 也会出现Failed to parse tool call的现象 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
只有chatglm3-6b才能使用工具 |
Beta Was this translation helpful? Give feedback.
-
我的是chatglm3-6b呀 |
Beta Was this translation helpful? Give feedback.
-
看一下后台终端记录 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
前面那里的error可以忽略,因为刚刚那个是还没跑起来就打开网页了 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
检查一下模型对不对把 |
Beta Was this translation helpful? Give feedback.
-
这是第一次的output |
Beta Was this translation helpful? Give feedback.
-
就是这种情况,第二次输出会不带工具名。考古了下之前的issue说是模型只支持调用一次工具 |
Beta Was this translation helpful? Give feedback.
-
我觉得链式调用工具还挺必要的,在垂直场景里问完一个问题要求刷新下页面怎么都有点别扭 |
Beta Was this translation helpful? Give feedback.
-
感觉模型把这句话识别成单独的对话了? |
Beta Was this translation helpful? Give feedback.
-
我估计是要改底层那个“```”的问题,单独提取出calling后面那部分。我抽空研究下。 |
Beta Was this translation helpful? Give feedback.
-
该问题被记录为bad case,相关相似问题若能被复现将会集中一起处理,目前的Function call确实还有哦很多不完善的地方 |
Beta Was this translation helpful? Give feedback.
-
遇到同样得问题,mark |
Beta Was this translation helpful? Give feedback.
-
试一下最新的composite demo |
Beta Was this translation helpful? Give feedback.
-
如果我在工具定义中使用了多个参数,这个参数该如何定义呢?比如我想查询北京昨天的天气,那么参数中有地点,日期,这种格式的该如何传给模型呢?
|
Beta Was this translation helpful? Give feedback.
-
我们langchain tool的yaml或者tool_using 的注册中有提到如何写参数的格式,多参数是支持的 |
Beta Was this translation helpful? Give feedback.
-
要训练Tool调用,需要先在 ChatGLM3/composite_demo/tool_registry.py 中把tool的函数写上吗? |
Beta Was this translation helpful? Give feedback.
-
现在的版本还支持tool调用能力的微调吗?对比了10.30日的项目内容,新微调demo的代码里面关于tool字段都是not implemented ,感觉不支持tool能力的微调了。 |
Beta Was this translation helpful? Give feedback.
-
当需要在多轮对话靠后的轮次进行工具调用时,模型似乎无法成功调用工具。即使给出显式的调用工具的指令也无法成功调用。想请教一下针对这个问题有没有比较好的解决方法 |
Beta Was this translation helpful? Give feedback.
-
我想问一下微调后多轮对话为什么只有第一次能输出想要的答案,后面再问就开始胡言乱语了,是数据集的原因还是什么 |
Beta Was this translation helpful? Give feedback.
-
System Info / 系統信息
ubuntu22.04
Who can help? / 谁可以帮助到您?
composite_dem @abmfy
Information / 问题信息
Reproduction / 复现过程
进行多轮对话时无法继续使用工具
Expected behavior / 期待表现
在多轮对话中可以继续使用tool
Beta Was this translation helpful? Give feedback.
All reactions