curl_local_ocr.sh 597 B

123456789101112131415161718
  1. # --media-path /Users/zhch158/workspace # 设置基础目录
  2. # {"url": "file://test_ocr_image.png"} # 相对于基础目录的相对路径
  3. curl http://127.0.0.1:8080/v1/chat/completions \
  4. -H "Content-Type: application/json" \
  5. -d '{
  6. "model": "ocr-vl",
  7. "messages": [
  8. {
  9. "role": "user",
  10. "content": [
  11. {"type": "text", "text": "Table Recognition:"},
  12. {"type": "image_url", "image_url": {"url": "file://repository.git/ocr_platform/ocr_tools/daemons/curl_local_img.png"}}
  13. ]
  14. }
  15. ],
  16. "max_tokens": 16384,
  17. "temperature": 0.1
  18. }'