mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-01 05:17:51 +08:00
Refactor: migrate document run api (#14351)
### What problem does this PR solve? Before migration: POST /v1/document/run After migration: POST /api/v1/documents/ingest/ ### Type of change - [x] Refactoring
This commit is contained in:
@ -106,7 +106,7 @@ def get_docs_info(auth, dataset_id, doc_ids=None, doc_id=None):
|
||||
def parse_docs(auth, doc_ids):
|
||||
authorization = {"Authorization": auth}
|
||||
json_req = {"doc_ids": doc_ids, "run": 1}
|
||||
url = f"{HOST_ADDRESS}/v1/document/run"
|
||||
url = f"{HOST_ADDRESS}/api/v1/documents/ingest"
|
||||
res = requests.post(url=url, headers=authorization, json=json_req)
|
||||
return res.json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user