UFO icon indicating copy to clipboard operation
UFO copied to clipboard

Error when using qwen-omni-turbo

Open AlanZsm opened this issue 7 months ago • 3 comments

I config the host_agent and app_agent with API_TYPE: "qwen", API_MODEL: "qwen-omni-turbo". it always return below error “This model does not support non-streaming output” for any task:

Image

AlanZsm avatar Apr 28 '25 06:04 AlanZsm

Thanks for the notice. UFO is now optimized for GPT/Gemini models and other model API may out of date. We will update their API in the next release.

vyokky avatar Apr 28 '25 06:04 vyokky

Alibaba has added OpenAI-compatible API endpoint for Qwen models: https://dashscope.aliyuncs.com/compatible-mode/v1. And this is even listed as the recommended method in their API platform documentation (https://bailian.console.aliyun.com/?tab=doc#/doc). I can't even find usage example for dashscope (The original Python API developed by Alibaba). I suppose Alibaba has dropped support for their dashscope API.

You simply need to set API_TYPE to openai and API_BASE to https://dashscope.aliyuncs.com/compatible-mode/v1.

We will update our Qwen-related code to use OpenAI service later. For now you can use the workaround above to resolve this issue.

nice-mee avatar May 01 '25 04:05 nice-mee

I made an initial implementation on my fork https://github.com/nice-mee/UFO/tree/vyokky/dev. This branch will be merged to main soon.

I have conducted some tests and it seems to be working fine. However qwen-omni-turbo seems to be pretty bad at understanding PC screenshots, I tried the newly released qwen3-235b-a22b with VISUAL_MODE set to False (Qwen3 is not multi-modal) and the results seem to be much better.

Usage:

API_TYPE: "qwen" ,
API_KEY: "sk-xxx",
API_MODEL: "qwen3-235b-a22b",

nice-mee avatar May 01 '25 07:05 nice-mee