mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 08:04:58 +08:00
[Misc] Fix typo in the example file (#12896)
Signed-off-by: Zhao Ke <yingxiongraomingzk@gmail.com>
This commit is contained in:
parent
306923da82
commit
cc01223f3b
@ -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 @@ if __name__ == '__main__':
|
||||
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?",
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user