百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#1103·marker

[BUG: 发生错误]ollama, 400 错误: 请求错误,以及错误: LLM 没有返回有效响应

作者: Raja-Vignesh7创建于 2026年9月10日更新于 2026年9月10日
标签bug: breaking

code: Python processes = [ 'marker.processors.block_relabel.BlockRelabelProcessor', 'marker.processors.line_merge.LineMergeProcessor', 'marker.processors.blockquote.BlockquoteProcessor', 'marker.processors.document_toc.DocumentTOCProcessor', 'marker.processors.footnote.FootnoteProcessor', 'marker.processors.ignoretext.IgnoreTextProcessor', 'marker.processors.line_numbers.LineNumbersProcessor', 'marker.processors.list.ListProcessor', 'marker.processors.page_header.PageHeaderProcessor', 'marker.processors.marginalia.MarginaliaProcessor', 'marker.processors.sectionheader.SectionHeaderProcessor', 'marker.processors.table.TableProcessor', 'marker.processors.LLM.llm_table.LLMTableProcessor', 'marker.processors.LLM.llm_table_merge.LLMTableMergeProcessor', 'marker.processors.LLM.llm_form.LLMFormProcessor', 'marker.processors.text.TextProcessor', 'marker.processors.LLM.llm_complex.LLMComplexRegionProcessor', 'marker.processors.LLM.llm_image_description.LLMImageDescriptionProcessor', 'marker.processors.LLM.llm_handwriting.LLMHandwritingProcessor', 'marker.processors.LLM.llm_sectionheader.LLMSectionHeaderProcessor', 'marker.processors.LLM.llm_page_correction.LLMPageCorrectionProcessor', 'marker.processors.reference.ReferenceProcessor', 'marker.processors.blank_page.BlankPageProcessor', 'marker.processors.debug.DebugProcessor' ] config_dict = { "output_format":"json", "use_llm": True, "mode":"balanced", "llm_service":"marker.services.ollama.OllamaService", "ollama_model": 'gemma3:4b', # Specify the LLM model want to use for correction "ollama_base_url": 'http://localhost:11434', }

config_parser = ConfigParser(config_dict) artifact_dict = create_model_dict()

converter = PdfConverter( config=self._config_parser.generate_config_dict(), artifact_dict=self._artifact_dict, # processor_list=self._config_parser.get_processors(), processor_list=proccesses, …

内容来源: datalab-to/marker

查看 GitHub 原文在 GitHub 查看讨论