Skip to content

Commit 7c8f82c

Browse files
authored
Allow meta and name in ChatMsg (#1392)
allow meta and name in ChatMsg
1 parent 076b61e commit 7c8f82c

File tree

1 file changed

+2
-0
lines changed
  • xtuner/v1/data_proto/messages

1 file changed

+2
-0
lines changed

xtuner/v1/data_proto/messages/chat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class ChatMsg(BaseModel):
7272
content: ContentType
7373
loss: Optional[bool] = None
7474
thinking: Optional[str] = None # only for assistant
75+
name: Optional[str] = None
76+
meta: Optional[Dict] = None
7577

7678
def __init__(self, *args, **kwargs):
7779
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)