Download apps/core/dto/chat.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/dto/chat.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/core/dto/chat.py
-
curl -L -o chat.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/dto/chat.py
493 Bytes
| """群聊相关 DTO""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from typing import Any | |
| class ChatResult: | |
| """群聊操作结果""" | |
| success: bool | |
| chat_id: str | None = None | |
| chat_name: str | None = None | |
| message: str | None = None | |
| error_code: str | None = None | |
| raw_response: dict[str, Any] | None = None | |
| class MessageContent: | |
| """消息内容""" | |
| title: str | |
| text: str | |
| file_path: str | None = None | |