Docs: update API endpoint paths (#9683)

### What problem does this PR solve?

- Update API endpoint paths in docs from `/v1/` to `/api/v1/` for
consistency

### Type of change

- [x] Documentation Update
This commit is contained in:
Liu An
2025-08-25 17:57:24 +08:00
committed by GitHub
parent 9dd22e141b
commit d0fa66f4d5

View File

@ -3501,7 +3501,7 @@ Failure:
### Generate related questions ### Generate related questions
**POST** `/v1/sessions/related_questions` **POST** `/api/v1/sessions/related_questions`
Generates five to ten alternative question strings from the user's original query to retrieve more relevant search results. Generates five to ten alternative question strings from the user's original query to retrieve more relevant search results.
@ -3516,7 +3516,7 @@ The chat model autonomously determines the number of questions to generate based
#### Request #### Request
- Method: POST - Method: POST
- URL: `/v1/sessions/related_questions` - URL: `/api/v1/sessions/related_questions`
- Headers: - Headers:
- `'content-Type: application/json'` - `'content-Type: application/json'`
- `'Authorization: Bearer <YOUR_LOGIN_TOKEN>'` - `'Authorization: Bearer <YOUR_LOGIN_TOKEN>'`
@ -3528,7 +3528,7 @@ The chat model autonomously determines the number of questions to generate based
```bash ```bash
curl --request POST \ curl --request POST \
--url http://{address}/v1/sessions/related_questions \ --url http://{address}/api/v1/sessions/related_questions \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_LOGIN_TOKEN>' \ --header 'Authorization: Bearer <YOUR_LOGIN_TOKEN>' \
--data ' --data '