Before you submit
Describe the bug
I have added a Gradio plugin, namely the Qwen-Coder-WebDev to AIAW and it actually does a pretty great job, combined with Gemini 3 flash in generating simple apps / webpages. But as soon as the Qwen-coder generation is finished, I can't seem to send another message, because it throws this error:
Invalid prompt: The messages must be a ModelMessage[]. If you have passed a UIMessage[], you can use convertToModelMessages to convert them.
To Reproduce
Steps to reproduce the behavior:
- Install this plugin:
{
"id": "hf-caly-coder-000000000000000000000002",
"title": "QWEN-coder",
"description": "Qwen code generation agent.",
"baseUrl": "https://qwen-qwen3-coder-webdev.hf.space",
"avatar": {
"type": "icon",
"icon": "code",
"hue": 80
},
"endpoints": [
{
"type": "tool",
"name": "code_generation",
"description": "Use this tool to generate code based on a prompt.",
"prompt": "Use this tool to generate code based on a prompt.",
"path": "/generate_code",
"inputs": [
{
"name": "input_value",
"description": "A prompt to generate an code for",
"paramType": "required",
"type": "str"
},
{
"name": "system_prompt_input_value",
"paramType": "optional",
"value": "",
"type": "str"
}
],
"outputIdxs": [
1
]
}
],
"noRoundtrip": false
}
- Add hugging face api token.
- Enable this in any assistant.
- Attempt to generate a simple todoapp.
- Wait for successful response, and try to send a new message. See the error popping up.
Expected behavior
The expected behavour should be that it allows chatting futher. Note that the plugin endpoint can return markdonw, or pure text, markdown is at 0, text is at 1. No matter which one is chosen it will throw this error.
Screenshots

Environment
- Platform: [Windows]
- Version: [v1.8.6]
Before you submit
Describe the bug
I have added a Gradio plugin, namely the Qwen-Coder-WebDev to AIAW and it actually does a pretty great job, combined with Gemini 3 flash in generating simple apps / webpages. But as soon as the Qwen-coder generation is finished, I can't seem to send another message, because it throws this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behavour should be that it allows chatting futher. Note that the plugin endpoint can return markdonw, or pure text, markdown is at 0, text is at 1. No matter which one is chosen it will throw this error.
Screenshots

Environment