integrate MCP UI (#2948)
Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ export function convertApiMessageToFrontendMessage(
|
||||
sendToLLM: sendToLLM ?? true,
|
||||
id: generateId(),
|
||||
role: apiMessage.role as Role,
|
||||
created: apiMessage.created ?? 0,
|
||||
created: apiMessage.created ?? Math.floor(Date.now() / 1000),
|
||||
content: apiMessage.content
|
||||
.map((apiContent) => mapApiContentToFrontendMessageContent(apiContent))
|
||||
.filter((content): content is FrontendMessageContent => content !== null),
|
||||
|
||||
Reference in New Issue
Block a user