add error handle with message

This commit is contained in:
Billy Bao 2025-11-18 16:54:57 +08:00
parent 341e5904c8
commit e1c5664cd8

View file

@ -177,6 +177,9 @@ class Message(ComponentBase):
def _convert_content(self, content):
doc_id = get_uuid()
if not self._param.output_format or not isinstance(self._param.output_format, str):
return
if self._param.output_format.lower() not in {"markdown", "html", "pdf", "docx"}:
self._param.output_format = "markdown"