Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples\agents\modelscopegpt_agent.ipynb 运行报错,找不到工具NotImplementedError #418

Open
3 tasks done
Usigned opened this issue Apr 26, 2024 · 3 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@Usigned
Copy link

Usigned commented Apr 26, 2024

Initial Checks

  • I have searched GitHub for a duplicate issue and I'm sure this is something new
  • I have read and followed the docs & demos and still think this is a bug
  • I am confident that the issue is with modelscope-agent (not my code, or another library in the ecosystem)

What happened + What you expected to happen

demo示例examples\agents\modelscopegpt_agent.ipynb首次运行报错,找不到工具NotImplementedError,但再不重启kernel的情况下重新运行单元格则正常,个人怀疑是和tools的赖加载机制有关。

个人尝试把demo中的speech-generation换成其他modelscope下的工具名依然会发生以上错误,但是换成dashscope中的工具如image_gen等则不会发生以上错误

Versions / Dependencies

python 3.11.5
windows 11

Reproduction script

from modelscope_agent.agents import RolePlay

role_template = '你扮演一个讲故事机器人,你需要根据要求生成一个故事并且读出来'

llm_config = {
    'model': 'qwen-turbo', 
    'model_server': 'dashscope',
    }
function_list = ['speech-generation']

bot = RolePlay(function_list=function_list,llm=llm_config, instruction=role_template)

报错NotImplementedError,把speech-generation换成其他modelscope中的工具如image-chat也会发生相同错误,但是换成dashscope中的工具如image_gen则正常运行

Issue Severity

None

@Usigned Usigned added the bug Something isn't working label Apr 26, 2024
@jialinhappy
Copy link

这个问题看起来还是没有解决啊

@zzhangpurdue zzhangpurdue assigned mushenL and unassigned zzhangpurdue and suluyana May 20, 2024
@zzhangpurdue
Copy link
Collaborator

0.5.2 版本已经修复相关问题。

@jialinhappy
Copy link

0.5.2版本看起来好像还不能pip安装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants