From 1b219e373aedb4f829bebd03900a17c027fbdaca Mon Sep 17 00:00:00 2001 From: juniper <38760345+ghntd@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:26:58 +0800 Subject: [PATCH] fix typo (#2916) --- lmdeploy/serve/vl_async_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmdeploy/serve/vl_async_engine.py b/lmdeploy/serve/vl_async_engine.py index c6f140a11..becf1b76f 100644 --- a/lmdeploy/serve/vl_async_engine.py +++ b/lmdeploy/serve/vl_async_engine.py @@ -124,7 +124,7 @@ async def async_convert_to_pil_images(cls, def _inner_call(i, in_messages, out_messages): role = in_messages[i]['role'] content = in_messages[i]['content'] - assert role in ['sytem', 'user', 'assistant'], \ + assert role in ['system', 'user', 'assistant'], \ f'unsupported role "{role}"' if role != 'user' or isinstance(content, str): # the content is a user's prompt or an assistant's prompt,