fix: don't return full shell output when very large (#3750)
has some additional build fixes
This commit is contained in:
@@ -280,7 +280,7 @@ export type ListSchedulesResponse = {
|
||||
*/
|
||||
export type Message = {
|
||||
content: Array<MessageContent>;
|
||||
created: number;
|
||||
created?: number;
|
||||
id?: string | null;
|
||||
role: Role;
|
||||
};
|
||||
|
||||
@@ -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