From e856ff82487bc3175fd07b637c2eb469d7e34de5 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Mon, 17 Mar 2025 12:12:55 +0800 Subject: [PATCH] fix: normalize url --- src/utils/schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/schemas.ts b/src/utils/schemas.ts index d765e29..8411964 100644 --- a/src/utils/schemas.ts +++ b/src/utils/schemas.ts @@ -223,7 +223,7 @@ export class Schemas { references: z.array( z.object({ exactQuote: z.string().describe("Exact relevant quote from the document, must be a soundbite, short and to the point, no fluff").max(30), - url: z.string().describe("source URL; must be copy directly from previous message's , avoid example.com or any placeholder fake URLs").max(100), + url: z.string().describe("source URL of the document; must copy from previous URL, avoid example.com or any placeholder fake URLs").max(100), dateTime: z.string().describe("Use original message's if available.").max(16), }).required() ).describe("Required when action='answer'. Must be an array of references that support the answer, each reference must contain an exact quote, URL and datetime"),