mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
docs: Fix inconsistent comments (#6051)
This commit is contained in:
@@ -45,7 +45,7 @@ async def list_files(request: Request, conversation_id: str, path: str | None =
|
||||
|
||||
To list files:
|
||||
```sh
|
||||
curl http://localhost:3000/api/list-files
|
||||
curl http://localhost:3000/api/conversations/{conversation_id}/list-files
|
||||
```
|
||||
|
||||
Args:
|
||||
@@ -110,7 +110,7 @@ async def select_file(file: str, request: Request):
|
||||
|
||||
To select a file:
|
||||
```sh
|
||||
curl http://localhost:3000/api/select-file?file=<file_path>
|
||||
curl http://localhost:3000/api/conversations/{conversation_id}select-file?file=<file_path>
|
||||
```
|
||||
|
||||
Args:
|
||||
@@ -154,7 +154,7 @@ async def upload_file(request: Request, conversation_id: str, files: list[Upload
|
||||
|
||||
To upload a files:
|
||||
```sh
|
||||
curl -X POST -F "file=@<file_path1>" -F "file=@<file_path2>" http://localhost:3000/api/upload-files
|
||||
curl -X POST -F "file=@<file_path1>" -F "file=@<file_path2>" http://localhost:3000/api/conversations/{conversation_id}/upload-files
|
||||
```
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user