mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 03:27:00 +08:00
feat: 新增实验性微信卡片分享与自动部署能力
补充 Cloudflare Worker、R2 存储、微信 JS-SDK 签名与上传鉴权 增加自动部署 Skill 和配置引导文档 优化报告工具栏、微信卡片弹窗及窄屏响应式布局 补充 Worker 鉴权、卡片生成、过期清理与安全转义测试
This commit is contained in:
@@ -411,9 +411,44 @@ handle('ai:getRuntimeConfig', () => ({
|
||||
status: 'connected',
|
||||
timeoutMs: 5000
|
||||
}))
|
||||
handle('ai:getVisionRuntimeConfig', () => ({
|
||||
providerId: 'fixture-vision-provider',
|
||||
providerName: '本地图片假服务',
|
||||
model: 'fixture-vision-model',
|
||||
modelName: '固定图片识别模型',
|
||||
configured: true,
|
||||
status: 'connected',
|
||||
timeoutMs: 5000,
|
||||
source: 'vision-capability'
|
||||
}))
|
||||
handle('ai:listProviders', () => ({
|
||||
success: true,
|
||||
providers: [],
|
||||
providers: [
|
||||
{
|
||||
id: 'fixture-provider',
|
||||
name: '本地假服务',
|
||||
type: 'openai-compatible',
|
||||
baseUrl: 'http://127.0.0.1:1/v1',
|
||||
auth: { type: 'none' },
|
||||
models: [
|
||||
{
|
||||
id: 'fixture-model',
|
||||
name: '固定响应模型',
|
||||
capabilities: { chat: true, vision: false, ocr: false, longContext: true }
|
||||
},
|
||||
{
|
||||
id: 'fixture-vision-model',
|
||||
name: '固定图片识别模型',
|
||||
capabilities: { chat: true, vision: true, ocr: true, longContext: true }
|
||||
}
|
||||
],
|
||||
defaultModel: 'fixture-model',
|
||||
advanced: { timeoutMs: 5000, extraHeaders: {} },
|
||||
hasApiKey: true,
|
||||
isDefault: true,
|
||||
status: 'connected'
|
||||
}
|
||||
],
|
||||
defaultProviderId: 'fixture-provider'
|
||||
}))
|
||||
handle('ai:migrateLegacy', () => ({ success: true, providers: [] }))
|
||||
|
||||
Reference in New Issue
Block a user