mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-21 16:40:07 +08:00
Refa: Chat conversations /convsersation API to RESTFul (#13893)
### What problem does this PR solve? Chat conversations /convsersation API to RESTFul. ### Type of change - [x] Refactoring
This commit is contained in:
@ -1469,12 +1469,13 @@ session.update({"name": "updated_name"})
|
||||
|
||||
```python
|
||||
Chat.list_sessions(
|
||||
page: int = 1,
|
||||
page_size: int = 30,
|
||||
orderby: str = "create_time",
|
||||
page: int = 1,
|
||||
page_size: int = 30,
|
||||
orderby: str = "create_time",
|
||||
desc: bool = True,
|
||||
id: str = None,
|
||||
name: str = None
|
||||
name: str = None,
|
||||
user_id: str = None
|
||||
) -> list[Session]
|
||||
```
|
||||
|
||||
@ -1509,6 +1510,10 @@ The ID of the chat session to retrieve. Defaults to `None`.
|
||||
|
||||
The name of the chat session to retrieve. Defaults to `None`.
|
||||
|
||||
##### user_id: `str`
|
||||
|
||||
The optional user-defined ID to filter sessions by. Defaults to `None`.
|
||||
|
||||
#### Returns
|
||||
|
||||
- Success: A list of `Session` objects associated with the current chat assistant.
|
||||
|
||||
Reference in New Issue
Block a user