vllm_test.sh 363 Bytes
Newer Older
dengjb's avatar
updata  
dengjb committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "GLM-OCR",
    "messages": [
      {
        "role": "user",
        "content": [
          {"type": "text", "text": "这张图片里有什么?"},
          {"type": "image_url", "image_url": {"url": "file://./paper.png"}}
        ]
      }
    ]
  }'