From c0d6d123bd5431b0e123f042291ff2f02bd3848d Mon Sep 17 00:00:00 2001 From: gaoao-3 <140887777+gaoao-3@users.noreply.github.com> Date: Wed, 1 Jan 2025 20:34:08 +0800 Subject: [PATCH] 2 --- utils/tools/URLSummarizer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/tools/URLSummarizer.js b/utils/tools/URLSummarizer.js index ed31fba..e52b730 100644 --- a/utils/tools/URLSummarizer.js +++ b/utils/tools/URLSummarizer.js @@ -59,11 +59,11 @@ async function summarizeURL(url, length) { messages: [ { role: 'system', - content: `You are a helpful assistant that summarizes web pages. Please summarize the content of the following URL in ${length} sentences. Provide a concise and clear summary.`, + content: `You are a summarization assistant. Summarize the content of the following URL in ${length} sentences in Chinese.`, }, { role: 'user', - content: `Summarize this URL: ${url}`, // Directly send the URL + content: `Summarize this article: ${url}`, // Directly send the URL }, ], max_tokens: 150 * length,