[Bugfix] Report supported tasks for omni models to skip unnecessary chat init (#1645)
Signed-off-by: linyueqian <linyueqian@outlook.com>
This commit is contained in:
1 parent
0f7c9c755d
commit
a6b5519616
3 files changed
+35
-1
No files matched your search
@@ -245,7 +245,10 @@ async def omni_run_server_worker(listen_address, sock, args, client_config=None,
|
||||
else:
|
||||
supported_tasks = ("generate",)
|
||||
if not supported_tasks:
|
||||
supported_tasks = ("generate",)
|
||||
# Only default to "generate" when get_supported_tasks is not implemented;
|
||||
# TTS-only models intentionally return an empty set.
|
||||
if not hasattr(engine_client, "get_supported_tasks"):
|
||||
supported_tasks = ("generate",)
|
||||
|
||||
# OMNI: Pass supported_tasks to build_app (required by upstream vLLM)
|
||||
app = build_openai_app(args, supported_tasks)
|
||||
|
||||
Reference in new issue
Block a user