chore: 更新Mock数据和工具服务
- 更新 mock 数据配置 - 优化 webFetch 工具服务
This commit is contained in:
parent
1ea5a8c916
commit
54578ddd2d
@ -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(),
|
||||
},
|
||||
];
|
||||
|
||||
@ -75,7 +75,7 @@ async function fallbackFetch(url: string): Promise<WebFetchResponse> {
|
||||
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',
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user