From 54578ddd2ddf51863de5adb1e4062bdd160ad565 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Fri, 19 Dec 2025 22:37:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0Mock=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=92=8C=E5=B7=A5=E5=85=B7=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 mock 数据配置 - 优化 webFetch 工具服务 --- src/data/mock.ts | 6 +++--- src/services/tools/webFetch.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/mock.ts b/src/data/mock.ts index b7da85a..d96571f 100644 --- a/src/data/mock.ts +++ b/src/data/mock.ts @@ -34,18 +34,18 @@ export const sampleMessages: Message[] = [ role: 'assistant', content: `我是 **Claude 4.5 Sonnet**,由 Anthropic 制作。 -不过需要说明的是,我目前运行在 cchcode (openclaude.me) 这个平台上,而不是 Anthropic 的官方平台。具体的模型 ID(如 API 调用时使用的标识符)可能是: +不过需要说明的是,我目前运行在 lioncode (openclaude.me) 这个平台上,而不是 Anthropic 的官方平台。具体的模型 ID(如 API 调用时使用的标识符)可能是: - \`claude-4.5-sonnet\`(如果这是实际的模型版本) - 或类似的标识符 但我需要诚实地说:根据我的知识(截至 2024 年底),Anthropic 官方发布的最新版本是 **Claude 3.5 Sonnet**(模型 ID 通常是 \`claude-3-5-sonnet-20241022\` 或类似格式)。"Claude 4.5 Sonnet" 这个名称可能是: -1. cchcode 平台的内部命名 +1. lioncode 平台的内部命名 2. 我被告知的身份信息 3. 或者是在我知识截止日期之后发布的新版本 -如果你想确认具体使用的是哪个模型版本,建议查看 cchcode 平台的设置或文档说明。你想了解这个信息是为了什么目的呢?也许我可以帮你解决实际问题。`, +如果你想确认具体使用的是哪个模型版本,建议查看 lioncode 平台的设置或文档说明。你想了解这个信息是为了什么目的呢?也许我可以帮你解决实际问题。`, timestamp: new Date(), }, ]; diff --git a/src/services/tools/webFetch.ts b/src/services/tools/webFetch.ts index f530236..9e24ffa 100644 --- a/src/services/tools/webFetch.ts +++ b/src/services/tools/webFetch.ts @@ -75,7 +75,7 @@ async function fallbackFetch(url: string): Promise { const response = await fetch(url, { method: 'GET', headers: { - 'User-Agent': 'Mozilla/5.0 (compatible; CCHCode-UI/1.0; +https://github.com/cchcode)', + 'User-Agent': 'Mozilla/5.0 (compatible; LionCode-UI/1.0; +https://github.com/lioncode)', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', }, });