Style: Fix formatting in images.ts
This commit is contained in:
parent
77c38626d9
commit
121efe9f38
@ -44,10 +44,9 @@ export async function sanitizeSessionMessagesImages(
|
|||||||
const allowNonImageSanitization = sanitizeMode === "full";
|
const allowNonImageSanitization = sanitizeMode === "full";
|
||||||
// We sanitize historical session messages because Anthropic can reject a request
|
// We sanitize historical session messages because Anthropic can reject a request
|
||||||
// if the transcript contains oversized base64 images (see MAX_IMAGE_DIMENSION_PX).
|
// if the transcript contains oversized base64 images (see MAX_IMAGE_DIMENSION_PX).
|
||||||
const sanitizedIds =
|
const sanitizedIds = options?.sanitizeToolCallIds
|
||||||
options?.sanitizeToolCallIds
|
? sanitizeToolCallIdsForCloudCodeAssist(messages, options.toolCallIdMode)
|
||||||
? sanitizeToolCallIdsForCloudCodeAssist(messages, options.toolCallIdMode)
|
: messages;
|
||||||
: messages;
|
|
||||||
const out: AgentMessage[] = [];
|
const out: AgentMessage[] = [];
|
||||||
for (const msg of sanitizedIds) {
|
for (const msg of sanitizedIds) {
|
||||||
if (!msg || typeof msg !== "object") {
|
if (!msg || typeof msg !== "object") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user