Remove debug logging for responsePrefix template resolution
This commit is contained in:
@@ -127,10 +127,6 @@ export async function runAgentTurnWithFallback(params: {
|
||||
run: (provider, model) => {
|
||||
// Notify that model selection is complete (including after fallback).
|
||||
// This allows responsePrefix template interpolation with the actual model.
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
`[responsePrefix] onModelSelected callback exists: ${!!params.opts?.onModelSelected}, provider=${provider}, model=${model}`,
|
||||
);
|
||||
params.opts?.onModelSelected?.({
|
||||
provider,
|
||||
model,
|
||||
|
||||
@@ -43,19 +43,9 @@ export function normalizeReplyPayload(
|
||||
}
|
||||
|
||||
// Resolve template variables in responsePrefix if context is provided
|
||||
if (opts.responsePrefix?.includes("{")) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
`[responsePrefix] normalizing: prefix="${opts.responsePrefix}", context=${JSON.stringify(opts.responsePrefixContext)}`,
|
||||
);
|
||||
}
|
||||
const effectivePrefix = opts.responsePrefixContext
|
||||
? resolveResponsePrefixTemplate(opts.responsePrefix, opts.responsePrefixContext)
|
||||
: opts.responsePrefix;
|
||||
if (opts.responsePrefix?.includes("{")) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[responsePrefix] resolved to: "${effectivePrefix}"`);
|
||||
}
|
||||
|
||||
if (
|
||||
effectivePrefix &&
|
||||
|
||||
Reference in New Issue
Block a user