feat(office): keep PDF support in bundled Python and the existing route

This commit is contained in:
yudshj authored and Yudong Han committed 2026-11-18 12:07:06 +01:00
1 parent 34a290150c
commit 2f93052188
153 files changed
+211 -528

No files matched your search

+1 -1
View File
@@ -997,7 +997,7 @@ def _smoke_sdk_authoring_cached(base_url: str, executable: Path, update_snapshot
assert len(requests) == 2, requests
prompt = json.dumps(requests[0], ensure_ascii=False)
assert ("- `office`:" in prompt) == (mode != "disabled"), mode
for name in ("office-docx", "office-pdf", "office-pptx", "office-xlsx"):
for name in ("office-docx", "office-pptx", "office-xlsx"):
assert (name in prompt) == (mode != "disabled"), (mode, name)
assert ("CUSTOM_OFFICE_DOCX" in prompt) == (mode == "replacement"), mode
tool_result = next(block for message in requests[1]["messages"]