File size: 514 Bytes
e8805c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash

set -euo pipefail

API_BASE="${API_BASE:-http://127.0.0.1:8000/v1}"
MODEL="${MODEL:-internvl35-fp8}"

curl -sS "$API_BASE/chat/completions" \
  -H 'Content-Type: application/json' \
  -d @- <<JSON | python3 -m json.tool
{
  "model": "$MODEL",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Which number is larger, 9.11 or 9.8? Explain briefly."
        }
      ]
    }
  ],
  "temperature": 0.0,
  "max_tokens": 96
}
JSON