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:
Yongteng Lei
2026-04-02 20:49:23 +08:00
committed by GitHub
parent bbb9b1df85
commit b7daf6285b
43 changed files with 1516 additions and 2002 deletions

View File

@ -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.