Explorar el Código

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

zhch158_admin hace 1 semana
padre
commit
6a4c6d2098
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  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:"}
         ]
       }
     ],