From 186b6af4819d37a4f61f0f0ed74d6ef64614e75c Mon Sep 17 00:00:00 2001 From: Ke Zhao Date: Sat, 8 Feb 2025 14:56:43 +0800 Subject: [PATCH] [Misc] Fix typo in the example file (#12896) Signed-off-by: Zhao Ke --- .../openai_chat_embedding_client_for_multimodal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/online_serving/openai_chat_embedding_client_for_multimodal.py b/examples/online_serving/openai_chat_embedding_client_for_multimodal.py index f49d7a228191c..e410620378a52 100644 --- a/examples/online_serving/openai_chat_embedding_client_for_multimodal.py +++ b/examples/online_serving/openai_chat_embedding_client_for_multimodal.py @@ -44,7 +44,7 @@ def vlm2vec(): def dse_qwen2_vl(inp: dict): # Embedding an Image - if inp["dtype"] == "image": + if inp["type"] == "image": messages = [{ "role": "user", @@ -113,10 +113,10 @@ def dse_qwen2_vl(inp: dict): vlm2vec() elif args.model == "dse_qwen2_vl": dse_qwen2_vl({ - "dtye": "image", + "type": "image", "image_url": image_url, }) dse_qwen2_vl({ - "dtype": "text", + "type": "text", "content": "What is the weather like today?", })