瀏覽代碼

修改core-ai,修改OCR接口路径定义

Signed-off-by: luoshi <luoshi@qmth.com.cn>
luoshi 1 年之前
父節點
當前提交
0229eb9ee3

+ 2 - 2
core-ai/src/main/java/com/qmth/boot/core/ai/client/OcrApiClient.java

@@ -23,7 +23,7 @@ public interface OcrApiClient {
      * @return
      */
     @Multipart
-    @POST(AiConstants.OCR_GENERAL_PATH)
-    String image(@Tag SignatureInfo signature, @Query("type") OcrType type, @Part MultipartBody.Part image);
+    @POST(AiConstants.OCR_IMAGE_PATH)
+    String forImage(@Tag SignatureInfo signature, @Query("type") OcrType type, @Part MultipartBody.Part image);
 
 }

+ 1 - 3
core-ai/src/main/java/com/qmth/boot/core/ai/model/AiConstants.java

@@ -14,7 +14,5 @@ public interface AiConstants {
 
     String LLM_PROMPT_TEMPLATE_PATH = API_PREFIX + "/llm/prompt_template";
 
-    String OCR_GENERAL_PATH = API_PREFIX + "/ocr/general";
-
-    String OCR_HANDWRITING_PATH = API_PREFIX + "/ocr/handwriting";
+    String OCR_IMAGE_PATH = API_PREFIX + "/ocr/image";
 }