[全量] 初始化项目代码、配置、文档及Agent协同harness

This commit is contained in:
2026-04-02 11:36:05 +08:00
parent 0553309cdf
commit 87e571d9ec
1133 changed files with 221948 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
"""
PDF 转 Markdown 微服务的 HTTP 地址(仅此一处拼 URL不 import configs避免旧 .pyc / 错误包名导致仍用 0.0.0.0)。
"""
from __future__ import annotations
import os
_DEFAULT = "http://127.0.0.1:6006/convert/"
def resolve_pdf_convert_post_url() -> str:
u = (os.environ.get("PDF_CONVERT_API_URL") or "").strip() or _DEFAULT
u = u.replace("0.0.0.0", "127.0.0.1")
if not u.startswith("http"):
return _DEFAULT
return u