Add document extraction channel toggle

This commit is contained in:
hanyuanling authored and Xubin Ren committed 2026-05-29 15:31:03 +08:00
1 parent 404b68cdd4
commit ec4f9e9857
5 files changed
+225 -3

No files matched your search

+7
View File
@@ -91,6 +91,13 @@ def test_channels_config_builtin_fields_removed():
assert not hasattr(cfg, "telegram")
assert cfg.send_progress is True
assert cfg.send_tool_hints is False
assert cfg.extract_document_text is True
def test_channels_config_extract_document_text_accepts_camel_alias():
cfg = ChannelsConfig.model_validate({"extractDocumentText": False})
assert cfg.extract_document_text is False
# ---------------------------------------------------------------------------