feat: support model load balancing and add message_id to API responses

This commit is contained in:
Eternity
2026-03-06 19:29:31 +08:00
parent ab5b165dc2
commit 3e5f6176af
5 changed files with 23 additions and 6 deletions

View File

@@ -86,6 +86,7 @@ class ChatResponse(BaseModel):
"""聊天响应(非流式)"""
conversation_id: uuid.UUID
message: str
message_id: str
usage: Optional[Dict[str, Any]] = None
elapsed_time: Optional[float] = None