mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
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:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user