Quellcode durchsuchen

fix(调整内容顺序): 修改curl_local_mineru.sh和curl_local_ocr.sh中的内容顺序,确保图像URL在文本之前

zhch158_admin vor 1 Woche
Ursprung
Commit
6a4c6d2098
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 2 2
      ocr_tools/daemons/curl_local_mineru.sh
  2. 2 2
      ocr_tools/daemons/curl_local_ocr.sh

+ 2 - 2
ocr_tools/daemons/curl_local_mineru.sh

@@ -8,8 +8,8 @@ curl http://127.0.0.1:8103/v1/chat/completions \
       {
         "role": "user",
         "content": [
-          {"type": "text", "text": "Table Recognition:"},
-          {"type": "image_url", "image_url": {"url": "file://repository.git/ocr_platform/ocr_tools/daemons/curl_local_img.png"}}
+          {"type": "image_url", "image_url": {"url": "file://repository.git/ocr_platform/ocr_tools/daemons/curl_local_img.png"}},
+          {"type": "text", "text": "Table Recognition:"}
         ]
       }
     ],

+ 2 - 2
ocr_tools/daemons/curl_local_ocr.sh

@@ -8,8 +8,8 @@ curl http://127.0.0.1:8080/v1/chat/completions \
       {
         "role": "user",
         "content": [
-          {"type": "text", "text": "Table Recognition:"},
-          {"type": "image_url", "image_url": {"url": "file://repository.git/ocr_platform/ocr_tools/daemons/curl_local_img.png"}}
+          {"type": "image_url", "image_url": {"url": "file://repository.git/ocr_platform/ocr_tools/daemons/curl_local_img.png"}},
+          {"type": "text", "text": "Table Recognition:"}
         ]
       }
     ],