fix(auto-reply): enforce reasoning tags on fallback providers
This commit is contained in:
committed by
Peter Steinberger
parent
ffc465394e
commit
7896b30489
@@ -46,6 +46,7 @@ import {
|
|||||||
formatUsd,
|
formatUsd,
|
||||||
resolveModelCostConfig,
|
resolveModelCostConfig,
|
||||||
} from "../../utils/usage-format.js";
|
} from "../../utils/usage-format.js";
|
||||||
|
import { isReasoningTagProvider } from "../../utils/provider-utils.js";
|
||||||
import { stripHeartbeatToken } from "../heartbeat.js";
|
import { stripHeartbeatToken } from "../heartbeat.js";
|
||||||
import type { OriginatingChannelType, TemplateContext } from "../templating.js";
|
import type { OriginatingChannelType, TemplateContext } from "../templating.js";
|
||||||
import { normalizeVerboseLevel, type VerboseLevel } from "../thinking.js";
|
import { normalizeVerboseLevel, type VerboseLevel } from "../thinking.js";
|
||||||
@@ -411,7 +412,9 @@ export async function runReplyAgent(params: {
|
|||||||
prompt: memoryFlushSettings.prompt,
|
prompt: memoryFlushSettings.prompt,
|
||||||
extraSystemPrompt: flushSystemPrompt,
|
extraSystemPrompt: flushSystemPrompt,
|
||||||
ownerNumbers: followupRun.run.ownerNumbers,
|
ownerNumbers: followupRun.run.ownerNumbers,
|
||||||
enforceFinalTag: followupRun.run.enforceFinalTag,
|
enforceFinalTag:
|
||||||
|
followupRun.run.enforceFinalTag ||
|
||||||
|
isReasoningTagProvider(provider),
|
||||||
provider,
|
provider,
|
||||||
model,
|
model,
|
||||||
authProfileId: followupRun.run.authProfileId,
|
authProfileId: followupRun.run.authProfileId,
|
||||||
@@ -659,7 +662,9 @@ export async function runReplyAgent(params: {
|
|||||||
prompt: commandBody,
|
prompt: commandBody,
|
||||||
extraSystemPrompt: followupRun.run.extraSystemPrompt,
|
extraSystemPrompt: followupRun.run.extraSystemPrompt,
|
||||||
ownerNumbers: followupRun.run.ownerNumbers,
|
ownerNumbers: followupRun.run.ownerNumbers,
|
||||||
enforceFinalTag: followupRun.run.enforceFinalTag,
|
enforceFinalTag:
|
||||||
|
followupRun.run.enforceFinalTag ||
|
||||||
|
isReasoningTagProvider(provider),
|
||||||
provider,
|
provider,
|
||||||
model,
|
model,
|
||||||
authProfileId: followupRun.run.authProfileId,
|
authProfileId: followupRun.run.authProfileId,
|
||||||
|
|||||||
Reference in New Issue
Block a user