MCPcopy
hub / github.com/xcanwin/KeepChatGPT / extractConversationPreview

Function extractConversationPreview

KeepChatGPT.user.js:1992–1998  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

1990 };
1991
1992 const extractConversationPreview = function (message) {
1993 const text = flattenConversationText(message?.content?.parts || message?.content)
1994 .replace(/[\r\n]+/g, " ")
1995 .replace(/\s+/g, " ")
1996 .trim();
1997 return text.slice(0, 100);
1998 };
1999
2000 const extractConversationModel = function (message) {
2001 return (

Callers 2

Calls 1

flattenConversationTextFunction · 0.85

Tested by

no test coverage detected