chore: 更新Mock数据和工具服务

- 更新 mock 数据配置
- 优化 webFetch 工具服务
This commit is contained in:
gaoziman 2025-12-19 22:37:42 +08:00
parent 1ea5a8c916
commit 54578ddd2d
2 changed files with 4 additions and 4 deletions

View File

@ -34,18 +34,18 @@ export const sampleMessages: Message[] = [
role: 'assistant', role: 'assistant',
content: `我是 **Claude 4.5 Sonnet**,由 Anthropic 制作。 content: `我是 **Claude 4.5 Sonnet**,由 Anthropic 制作。
cchcode (openclaude.me) Anthropic ID API 使 lioncode (openclaude.me) Anthropic ID API 使
- \`claude-4.5-sonnet\`(如果这是实际的模型版本) - \`claude-4.5-sonnet\`(如果这是实际的模型版本)
- -
2024 Anthropic **Claude 3.5 Sonnet** ID \`claude-3-5-sonnet-20241022\` 或类似格式)。"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. 2.
3. 3.
使 cchcode `, 使 lioncode `,
timestamp: new Date(), timestamp: new Date(),
}, },
]; ];

View File

@ -75,7 +75,7 @@ async function fallbackFetch(url: string): Promise<WebFetchResponse> {
const response = await fetch(url, { const response = await fetch(url, {
method: 'GET', method: 'GET',
headers: { 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', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
}, },
}); });