"vscode:/vscode.git/clone" did not exist on "efd945618de4420649b0234e0ae1b8ff118bf40a"
Commit 86391acf authored by myhloli's avatar myhloli
Browse files

fix: prevent server URL assignment for non-client backends in VLM processing

parent b4cdfedb
...@@ -229,6 +229,8 @@ async def _async_process_vlm( ...@@ -229,6 +229,8 @@ async def _async_process_vlm(
"""异步处理VLM后端逻辑""" """异步处理VLM后端逻辑"""
parse_method = "vlm" parse_method = "vlm"
f_draw_span_bbox = False f_draw_span_bbox = False
if not backend.endswith("client"):
server_url = None
for idx, pdf_bytes in enumerate(pdf_bytes_list): for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx] pdf_file_name = pdf_file_names[idx]
...@@ -267,6 +269,8 @@ def _process_vlm( ...@@ -267,6 +269,8 @@ def _process_vlm(
"""同步处理VLM后端逻辑""" """同步处理VLM后端逻辑"""
parse_method = "vlm" parse_method = "vlm"
f_draw_span_bbox = False f_draw_span_bbox = False
if not backend.endswith("client"):
server_url = None
for idx, pdf_bytes in enumerate(pdf_bytes_list): for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx] pdf_file_name = pdf_file_names[idx]
......
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