14 lines
247 B
Python
14 lines
247 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
|
||
|
|
|
||
|
|
class ChatMessageResponseDTO(BaseModel):
|
||
|
|
"""流式消息响应模型"""
|
||
|
|
|
||
|
|
id: str
|
||
|
|
event: str = "message"
|
||
|
|
task_id: str
|
||
|
|
message_id: str
|
||
|
|
conversation_id: str
|
||
|
|
answer: str
|
||
|
|
created_at: int
|