fix: suppress thinking stream + typing
This commit is contained in:
@@ -653,8 +653,14 @@ export async function getReplyFromConfig(
|
||||
}
|
||||
|
||||
const isFirstTurnInSession = isNewSession || !systemSent;
|
||||
const isGroupChat = sessionCtx.ChatType === "group";
|
||||
const wasMentioned = ctx.WasMentioned === true;
|
||||
const shouldEagerType = !isGroupChat || wasMentioned;
|
||||
if (shouldEagerType) {
|
||||
await startTypingLoop();
|
||||
}
|
||||
const shouldInjectGroupIntro =
|
||||
sessionCtx.ChatType === "group" &&
|
||||
isGroupChat &&
|
||||
(isFirstTurnInSession || sessionEntry?.groupActivationNeedsSystemIntro);
|
||||
const groupIntro =
|
||||
shouldInjectGroupIntro
|
||||
|
||||
@@ -16,6 +16,7 @@ export type MsgContext = {
|
||||
SenderName?: string;
|
||||
SenderE164?: string;
|
||||
Surface?: string;
|
||||
WasMentioned?: boolean;
|
||||
};
|
||||
|
||||
export type TemplateContext = MsgContext & {
|
||||
|
||||
Reference in New Issue
Block a user