Add document extraction channel toggle

This commit is contained in:
hanyuanling
2026-05-29 15:31:03 +08:00
committed by Xubin Ren
parent 404b68cdd4
commit ec4f9e9857
5 changed files with 225 additions and 3 deletions
+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
# ---------------------------------------------------------------------------