debug: add responsePrefix template logging
This commit is contained in:
1 parent
113eea5047
commit
56b3b44342
3 files changed
+16
No files matched your search
@@ -163,10 +163,14 @@ export const dispatchTelegramMessage = async ({
|
||||
disableBlockStreaming,
|
||||
onModelSelected: (ctx) => {
|
||||
// Mutate the object directly instead of reassigning to ensure the closure sees updates
|
||||
logVerbose(
|
||||
`[responsePrefix] telegram onModelSelected fired: provider=${ctx.provider}, model=${ctx.model}, thinkLevel=${ctx.thinkLevel}`,
|
||||
);
|
||||
prefixContext.provider = ctx.provider;
|
||||
prefixContext.model = extractShortModelName(ctx.model);
|
||||
prefixContext.modelFull = `${ctx.provider}/${ctx.model}`;
|
||||
prefixContext.thinkingLevel = ctx.thinkLevel ?? "off";
|
||||
logVerbose(`[responsePrefix] telegram prefixContext updated: ${JSON.stringify(prefixContext)}`);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user