sync update from LAN repo (source dhk-1 @ 3b1ec5b4)
This commit is contained in:
1 parent
da6521b6cb
commit
264e2200d6
995 files changed
+148105
-13399
No files matched your search
@@ -67,6 +67,7 @@ from app.gateway.word_export import (
|
||||
build_markdown_docx,
|
||||
)
|
||||
from deerflow.config.app_config import AppConfig
|
||||
from deerflow.config.system_settings import load_system_settings
|
||||
from deerflow.models import create_chat_model
|
||||
from deerflow.utils.stream_text import InlineThinkTagFilter
|
||||
|
||||
@@ -441,11 +442,13 @@ async def export_markdown_docx(body: MarkdownDocxExportRequest) -> Response:
|
||||
persist the supplied Markdown.
|
||||
"""
|
||||
try:
|
||||
heading_numbering_style = load_system_settings().prompt_prefix.word_heading_numbering_style
|
||||
content = await asyncio.to_thread(
|
||||
build_markdown_docx,
|
||||
body.markdown,
|
||||
body.title,
|
||||
embedded_images=body.embedded_images or None,
|
||||
heading_numbering_style=heading_numbering_style,
|
||||
)
|
||||
except WordExportFontError as exc:
|
||||
raise HTTPException(status_code=503, detail=str(exc)) from exc
|
||||
|
||||
Reference in new issue
Block a user