소스 검색

pdf_converter_v2: 服务与根 converter 默认 API 改为 127.0.0.1:5282

何文松 3 주 전
부모
커밋
4f5a7abbe2
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      pdf_converter_v2/converter.py
  2. 1 1
      service/pdf-converter-v2.service

+ 1 - 1
pdf_converter_v2/converter.py

@@ -156,7 +156,7 @@ async def convert_to_markdown(
     table_enable: bool = True,
     language: str = "ch",
     backend: str = "vlm-vllm-async-engine",
-    url: str = "http://192.168.2.3:8000",
+    url: str = "http://127.0.0.1:5282",
     embed_images: bool = True,
     output_json: bool = False,
     start_page_id: int = 0,

+ 1 - 1
service/pdf-converter-v2.service

@@ -28,7 +28,7 @@ Environment="PDF_CONVERTER_LOG_DIR=/mnt/win_d/Clerk2.5/logs"
 Environment="LOG_LEVEL=INFO"
 
 # 外部API配置(v2版本使用外部API)
-Environment="API_URL=http://192.168.2.3:8000"
+Environment="API_URL=http://127.0.0.1:5282"
 Environment="BACKEND=vlm-vllm-async-engine"
 Environment="PARSE_METHOD=auto"
 Environment="LANGUAGE=ch"