MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / Paper2FigureRequest

Class Paper2FigureRequest

dataflow_agent/state.py:285–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284@dataclass
285class Paper2FigureRequest(MainRequest):
286 gen_fig_model: str = "gemini-2.5-flash-image-preview"
287 # gen_fig_model: str = "gemini-3-pro-image-preview"
288 sam2_model: str = "models/facebook/sam2.1-hiera-tiny"
289 bg_rm_model: str = "models/RMBG-2.0"
290
291 # 新增:用于 wf_pdf2ppt_qwenvl.py 的 VLM 模型
292 vlm_model: str = "qwen-vl-ocr-2025-11-20"
293
294 # 新增:用于 wf_paper2expfigure.py 的图表相关模型
295 chart_model: str = "gpt-4o"
296
297 # 新增:用于 wf_paper2figure_image_only.py 的描述生成模型
298 fig_desc_model: str = "gpt-5.1"
299
300 # 新增:用于 wf_paper2technical.py 的技术路线生成模型
301 technical_model: str = "gpt-5.4"
302 # 技术路线图模板/配色(可选)
303 tech_route_template: str = ""
304 tech_route_palette: str = ""
305
306 input_type: str = "PDF"
307 input_content: str = ""
308 # 科研绘图复杂度
309 figure_complex: str = "hard"
310 style: str = "kartoon"
311
312 # PPT的页面数量
313 page_count: int = 10
314 # 是否编辑完毕,也就是是否需要重新生成完整的 PPT
315 all_edited_down: bool = False
316
317 # pdf2ppt是否使用AI编辑
318 use_ai_edit: bool = False
319
320 # paper2ppt的参考图路径:
321 ref_img: str = ''
322
323@dataclass
324class Paper2FigureState(MainState):

Callers 4

run_pdf2ppt_wf_api_localFunction · 0.90
_extract_table_assetMethod · 0.90

Calls

no outgoing calls

Tested by 1