ModelScope中, AgentFabric 调用报错,怎么解决?

"class TaiyiImageTool(BaseTool):
description = '文生图'
name = 'taiyiimage'
parameters: list = [{
'name': '{""input"": {""text""}}',

    #'name': 'input:text',
    'description': '图内容的描述,用来生成图',
    'required': True,
    'type': 'string'
}]            D:\agentfabric\modelscope-agent\modelscope_agent\tools里的taiyi_image_gen_tool.py文件继承类   {""input"": {""text"": ""一个女孩""}}      ModelScope中, AgentFabric 调用报错,怎么解决?:{'detail': [{'loc': ['body'], 'msg': 'value is not a valid dict', 'type': 'type_error.dict'}]}"

展开
收起
小小爱吃香菜 2024-04-10 14:48:38 85 分享 版权
1 条回答
写回答
取消 提交回答

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352

热门讨论

热门文章

还有其他疑问?
咨询AI助理