Skip to content

Commit 03f44b2

Browse files
committed
missing metadata in slot
1 parent 9885a5b commit 03f44b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/components/ChatMessage.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface ChatMessageProps<METADATA = unknown, DATA_PARTS extends UIDataT
5050
5151
export interface ChatMessageSlots<METADATA = unknown, DATA_PARTS extends UIDataTypes = UIDataTypes, TOOLS extends UITools = UITools> {
5252
leading(props: { avatar: ChatMessageProps<METADATA, DATA_PARTS, TOOLS>['avatar'], ui: ChatMessage['ui'] }): any
53-
content(props: ChatMessageProps<METADATA, DATA_PARTS, TOOLS>): any
53+
content(props: Pick<ChatMessageProps<METADATA, DATA_PARTS, TOOLS>, 'id' | 'role' | 'parts' | 'metadata' | 'content'>): any
5454
actions(props: { actions: ChatMessageProps<METADATA, DATA_PARTS, TOOLS>['actions'] }): any
5555
}
5656
</script>
@@ -99,6 +99,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.chatMessage
9999
:role="role"
100100
:content="content"
101101
:parts="parts"
102+
:metadata="metadata"
102103
>
103104
<template v-if="content">
104105
{{ content }}

0 commit comments

Comments
 (0)