camel icon indicating copy to clipboard operation
camel copied to clipboard

[Question] 我在练习 利用Workforce组建hackathon评审团 demo 报错?

Open justinzm opened this issue 9 months ago • 2 comments

Required prerequisites

Questions

我在练习 利用Workforce组建hackathon评审团 demo

使用的 model = ModelFactory.create( model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL, model_type="Qwen/Qwen2.5-72B-Instruct", url=os.getenv("MODELSCOPE_API_BASE"), api_key=os.getenv("MODELSCOPE_KEY") )

报错:camel.models.model_manager.ModelProcessingError: Unable to process messages: the only provided model did not run successfully. Error: 1 validation error for TaskAssignResult Input should be an object [type=model_type, input_value=5059208400, input_type=int]

请问这个是什么问题?怎么解决?

justinzm avatar Mar 29 '25 07:03 justinzm

hello @justinzm ,please try to use this in modelscope,let me know your feedback https://github.com/camel-ai/camel/blob/3e7d2f57458b08d120481336fc0694b8d12a242a/examples/models/modelscope_model_example.py#L22

zjrwtx avatar Mar 31 '25 12:03 zjrwtx

or It could be a problem with the model's capabilities, can you try gpt4o or another model?

zjrwtx avatar Mar 31 '25 12:03 zjrwtx

这通常是因为模型的结构化输出能力较弱导致的,可以换一些能力更强的模型试试,我们在新版本也加入了提醒

fengju0213 avatar Apr 07 '25 05:04 fengju0213