mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-24 21:41:04 +02:00
chore: drop dead guessed 'tree' key fallback in legacy SDK demo — the tree endpoint only returns 'result'
This commit is contained in:
parent
464d5658dd
commit
5769d15fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ def main() -> int:
|
|||
|
||||
# 3) get_tree
|
||||
tree = client.get_tree(doc_id)
|
||||
node_count = len(tree.get("result") or tree.get("tree") or [])
|
||||
node_count = len(tree.get("result") or [])
|
||||
log("get_tree", f"top-level nodes={node_count}, status={tree.get('status')}")
|
||||
|
||||
# 4) get_document (metadata)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue