① 房間影像與標記
區域:可自行增減數量、改名、配色、改用途
亮區=要叫醒嘅對象(可多個,波束以第一個為主要目標);隔離區=要避免嘈醒嘅人(數量不限);陣列位置=超聲波陣列所在。
影相或上載房間相片
建議 2–4 張:床頭正面、側面、俯瞰
點一下畫面即自動開啟鏡頭並調亮
- 尚未加入標記 — 在相片上點擊即可放置
Directional Awakening System v1.0
亮區=要叫醒嘅對象(可多個,波束以第一個為主要目標);隔離區=要避免嘈醒嘅人(數量不限);陣列位置=超聲波陣列所在。
影相或上載房間相片
建議 2–4 張:床頭正面、側面、俯瞰
點一下畫面即自動開啟鏡頭並調亮
DeepSeek 官方 API 唔開放 CORS,純網頁直連多數會被瀏覽器攔截。建議用自訂代理。
呢段係餵俾 DeepSeek 嘅物理約束與輸出格式要求。改動前請確認 JSON Schema 仍然一致,否則前端會解析失敗並自動回退到本地估算。
dash.cloudflare.com → Workers & Pages → Create Workerhttps://xxx.workers.devexport default {
async fetch(request) {
const CORS = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
'Access-Control-Max-Age': '86400',
};
if (request.method === 'OPTIONS') {
return new Response(null, { status: 204, headers: CORS });
}
const url = new URL(request.url);
const upstream = await fetch('https://api.deepseek.com' + url.pathname + url.search, {
method: request.method,
headers: {
'Content-Type': 'application/json',
'Authorization': request.headers.get('Authorization') || '',
},
body: request.method === 'POST' ? request.body : undefined,
});
return new Response(upstream.body, {
status: upstream.status,
headers: { ...CORS, 'Content-Type': 'application/json' },
});
},
};
其他等效選擇:ngrok http 8000、cloudflared tunnel、Vercel / Netlify Function、或自建 Nginx 加 add_header Access-Control-Allow-Origin *。