Merge pull request #510 from HarshMN2345/patch-2

Update API-docs.md
pull/554/head
Alex 12 months ago committed by GitHub
commit dd52949a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,9 @@ fetch("http://localhost:5001/api/task_status?task_id=b2d2a0f4-387c-44fd-a443-e4f
Responses:
There are two types of responses:
1. While task is still running, where "current" will show progress from 0 to 100:
1. While the task is still running, the 'current' value will show progress from 0 to 100.
```json
{
"result": {
@ -133,7 +135,8 @@ There are two types of responses:
```
### /api/delete_old
Deletes old Vector stores:
Deletes old Vector Stores:
```js
// Task status (GET http://127.0.0.1:5000/api/docs_check)
fetch("http://localhost:5001/api/task_status?task_id=b2d2a0f4-387c-44fd-a443-e4fe2e7454d1", {
@ -144,7 +147,6 @@ fetch("http://localhost:5001/api/task_status?task_id=b2d2a0f4-387c-44fd-a443-e4f
})
.then((res) => res.text())
.then(console.log.bind(console))
```
Response:

Loading…
Cancel
Save