Skip to content

Commit cc01223

Browse files
[Misc] Fix typo in the example file (#12896)
Signed-off-by: Zhao Ke <yingxiongraomingzk@gmail.com>
1 parent 306923d commit cc01223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/online_serving/openai_chat_embedding_client_for_multimodal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def vlm2vec():
4444

4545
def dse_qwen2_vl(inp: dict):
4646
# Embedding an Image
47-
if inp["dtype"] == "image":
47+
if inp["type"] == "image":
4848
messages = [{
4949
"role":
5050
"user",
@@ -113,10 +113,10 @@ def dse_qwen2_vl(inp: dict):
113113
vlm2vec()
114114
elif args.model == "dse_qwen2_vl":
115115
dse_qwen2_vl({
116-
"dtye": "image",
116+
"type": "image",
117117
"image_url": image_url,
118118
})
119119
dse_qwen2_vl({
120-
"dtype": "text",
120+
"type": "text",
121121
"content": "What is the weather like today?",
122122
})

0 commit comments

Comments
 (0)