Add document extraction channel toggle
This commit is contained in:
1 parent
404b68cdd4
commit
ec4f9e9857
5 files changed
+225
-3
No files matched your search
@@ -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
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user