fix wechat mp page reply routing
This commit is contained in:
+1
-7
@@ -919,7 +919,7 @@ export function shouldRetryHtmlGenerationReply({
|
||||
if (isMissingRequiredPublishSkill(reply, intent) || isSuspiciousBareCompletionReply(reply, intent)) {
|
||||
return true;
|
||||
}
|
||||
if (!usedStaticPagePublishSkill(reply?.messages ?? [])) return true;
|
||||
if (!usedStaticPagePublishSkill(reply?.messages ?? [])) return false;
|
||||
return !hasAnyUrl(reply?.text);
|
||||
}
|
||||
|
||||
@@ -1917,9 +1917,6 @@ export function createWechatMpService({
|
||||
if (reply.tokenState) {
|
||||
await userAuth.billSessionUsage(user.userId, sessionId, reply.tokenState, requestId);
|
||||
}
|
||||
if (looksLikeHtmlGenerationIntent(intent?.agentText) && verifiedArtifacts.length === 0 && confirmedArtifacts.length === 0) {
|
||||
throw new Error(buildHtmlPublishFailureText());
|
||||
}
|
||||
const finalizedReply = await maybeAttachPublishedHtmlLink(reply, {
|
||||
workingDir,
|
||||
publicBaseUrl: config.publicBaseUrl,
|
||||
@@ -1989,9 +1986,6 @@ export function createWechatMpService({
|
||||
if (reply.tokenState) {
|
||||
await userAuth.billSessionUsage(user.userId, sessionId, reply.tokenState, retryId);
|
||||
}
|
||||
if (looksLikeHtmlGenerationIntent(intent?.agentText) && verifiedArtifacts.length === 0 && confirmedArtifacts.length === 0) {
|
||||
throw new Error(buildHtmlPublishFailureText());
|
||||
}
|
||||
const finalizedReply = await maybeAttachPublishedHtmlLink(reply, {
|
||||
workingDir,
|
||||
publicBaseUrl: config.publicBaseUrl,
|
||||
|
||||
Reference in New Issue
Block a user