Skip to content

chatglm3 tool多轮对话无法继续使用 #315

Closed

Description

@shenmadouyaowen

System Info / 系統信息

ubuntu22.04

Who can help? / 谁可以帮助到您?

composite_dem @abmfy

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

进行多轮对话时无法继续使用工具
image

Expected behavior / 期待表现

在多轮对话中可以继续使用tool

Activity

  1. GavinZhou0125 commented on Nov 15, 2023

    @GavinZhou0125

    我也有同样的问题,即使他第二次模型返回了tool_call 也会出现Failed to parse tool call的现象

  2. CNUIGB commented on Nov 15, 2023

    @CNUIGB
  3. shenmadouyaowen commented on Nov 15, 2023

    @shenmadouyaowen
    Author

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

  4. CNUIGB commented on Nov 15, 2023

    @CNUIGB

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

  5. shenmadouyaowen commented on Nov 15, 2023

    @shenmadouyaowen
    Author

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

    看一下后台终端记录

  6. CNUIGB commented on Nov 15, 2023

    @CNUIGB

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

    看一下后台终端记录

    微信截图_20231115160531

  7. CNUIGB commented on Nov 15, 2023

    @CNUIGB

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

    看一下后台终端记录

    微信截图_20231115160531

    前面那里的error可以忽略,因为刚刚那个是还没跑起来就打开网页了
    后面的记录就是刚刚对话的记录

  8. shenmadouyaowen commented on Nov 15, 2023

    @shenmadouyaowen
    Author

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

    看一下后台终端记录

    微信截图_20231115160531

    前面那里的error可以忽略,因为刚刚那个是还没跑起来就打开网页了 后面的记录就是刚刚对话的记录

    去demo_tool.py 文件这行打印看看有没有显示True
    image

  9. CNUIGB commented on Nov 15, 2023

    @CNUIGB

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

    看一下后台终端记录

    微信截图_20231115160531

    前面那里的error可以忽略,因为刚刚那个是还没跑起来就打开网页了 后面的记录就是刚刚对话的记录

    去demo_tool.py 文件这行打印看看有没有显示True image

    微信截图_20231115163524
    大佬,是FALSE,这是什么原因呀

  10. shenmadouyaowen commented on Nov 15, 2023

    @shenmadouyaowen
    Author

    我的都不会调用工具 微信截图_20231115115525

    只有chatglm3-6b才能使用工具

    我的是chatglm3-6b呀

    看一下后台终端记录

    微信截图_20231115160531

    前面那里的error可以忽略,因为刚刚那个是还没跑起来就打开网页了 后面的记录就是刚刚对话的记录

    去demo_tool.py 文件这行打印看看有没有显示True image

    微信截图_20231115163524 大佬,是FALSE,这是什么原因呀

    检查一下模型对不对把

  11. jasonwongw commented on Nov 15, 2023

    @jasonwongw

    这是第一次的output
    image
    这是第二次的output
    image
    因为output的输出少了工具get_weather,之后在处理output时,报错了。
    image

  12. GavinZhou0125 commented on Nov 15, 2023

    @GavinZhou0125

    就是这种情况,第二次输出会不带工具名。考古了下之前的issue说是模型只支持调用一次工具

  13. GavinZhou0125 commented on Nov 15, 2023

    @GavinZhou0125

    我觉得链式调用工具还挺必要的,在垂直场景里问完一个问题要求刷新下页面怎么都有点别扭

  14. GavinZhou0125 commented on Nov 15, 2023

    @GavinZhou0125

    这是第一次的output image 这是第二次的output image 因为output的输出少了工具get_weather,之后在处理output时,报错了。 image

    感觉模型把这句话识别成单独的对话了?

  15. Roych13 commented on Nov 15, 2023

    @Roych13

    我估计是要改底层那个“```”的问题,单独提取出calling后面那部分。我抽空研究下。

  16. shenmadouyaowen commented on Nov 15, 2023

    @shenmadouyaowen
    Author

    实际上用命令行的时候是没有问题的,应该还是代码哪里判断没有处理好
    image

  17. locked and limited conversation to collaborators on Nov 16, 2023
  18. converted this issue into a discussion #335 on Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions