Fix: Correct the API path (#15204)

Follow on PR #15146 to reslove the backwad compatability issue.

1. /agents/<attachment_id>/download ->
/agents/attachments/<attachment_id>/download

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Wang Qi
2026-05-25 17:11:24 +08:00
committed by GitHub
parent 9d1006e4ec
commit 4776bfa8a2
5 changed files with 19 additions and 19 deletions

View File

@@ -421,7 +421,7 @@ def document_get(auth, document_id, *, headers=HEADERS, data=None):
def document_download(auth, attachment_id, *, ext="markdown", headers=HEADERS, data=None):
res = requests.get(
url=f"{HOST_ADDRESS}/api/{VERSION}/documents/{attachment_id}/download",
url=f"{HOST_ADDRESS}/api/{VERSION}/agents/attachments/{attachment_id}/download",
headers=headers,
auth=auth,
params={"ext": ext},