fix: don't return full shell output when very large (#3750)
has some additional build fixes
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,
|
||||
created: apiMessage.created ?? 0,
|
||||
content: apiMessage.content
|
||||
.map((apiContent) => mapApiContentToFrontendMessageContent(apiContent))
|
||||
.filter((content): content is FrontendMessageContent => content !== null),
|
||||
|
||||
Reference in New Issue
Block a user