integrate MCP UI (#2948)

Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Andrew Harvard
2025-08-01 08:09:06 -04:00
committed by GitHub
parent b4ab774329
commit 900698777b
9 changed files with 256 additions and 62 deletions
@@ -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),