From 5304b585b992c0b88b337ee4e51e9fa4b2830a00 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 18 Dec 2025 15:50:23 +0800 Subject: [PATCH] chore: improve comments --- src/main/apiServer/services/unified-messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/apiServer/services/unified-messages.ts b/src/main/apiServer/services/unified-messages.ts index 38c0f61d3e..7b465d75ad 100644 --- a/src/main/apiServer/services/unified-messages.ts +++ b/src/main/apiServer/services/unified-messages.ts @@ -145,13 +145,13 @@ function convertAnthropicToolResultToAiSdk( /** * JSON Schema type for tool input schemas - * Uses the standard JSONSchema7 type from the json-schema package (via @ai-sdk/provider) */ export type JsonSchemaLike = JSONSchema7 /** * Convert JSON Schema to Zod schema * This avoids non-standard fields like input_examples that Anthropic doesn't support + * TODO: Anthropic/beta support input_examples */ export function jsonSchemaToZod(schema: JsonSchemaLike): z.ZodTypeAny { const schemaType = schema.type