"vscode:/vscode.git/clone" did not exist on "63de23e3dbd936f58f2fa2858e5ea46f3010ae24"
Commit b4cdfedb authored by myhloli's avatar myhloli
Browse files

fix: prevent URL assignment for non-client backends

parent fc5f330c
...@@ -28,6 +28,7 @@ async def parse_pdf(doc_path, output_dir, end_page_id, is_ocr, formula_enable, t ...@@ -28,6 +28,7 @@ async def parse_pdf(doc_path, output_dir, end_page_id, is_ocr, formula_enable, t
if backend.startswith("vlm"): if backend.startswith("vlm"):
parse_method = "vlm" parse_method = "vlm"
if not backend.endswith("client"):
url = None url = None
local_image_dir, local_md_dir = prepare_env(output_dir, file_name, parse_method) local_image_dir, local_md_dir = prepare_env(output_dir, file_name, parse_method)
await aio_do_parse( await aio_do_parse(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment