🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
chore(site): 去掉误入库的临时脚本
dyk98518757d44fc7
diff --git a/site/.avif3-tmp.mjs b/site/.avif3-tmp.mjsdeleted file mode 100644index a2d41f6..0000000--- a/site/.avif3-tmp.mjs+++ /dev/null@@ -1,27 +0,0 @@-import sharp from "sharp";-import fs from "node:fs";-const [dir, ...qs] = process.argv.slice(2);-const names = ["blue","green","orange","purple","red","yellow"];-async function err(png, enc) {- // 预乘后的 RGBA 均方误差 → PSNR(透明处颜色不算)- const a = await sharp(png).raw().toBuffer(); const b = await sharp(enc).ensureAlpha().raw().toBuffer();- let se = 0, n = 0;- for (let i = 0; i < a.length; i += 4) {- const aa = a[i+3]/255, ba = b[i+3]/255;- for (let c = 0; c < 3; c++) { const d = a[i+c]*aa - b[i+c]*ba; se += d*d; }- const da = a[i+3]-b[i+3]; se += da*da; n += 4;- }- return 10*Math.log10(255*255/(se/n));-}-let line = `webp q86: `; let tot = 0, ps = [];-for (const k of names) { const f = `${dir}/${k}.webp`; tot += fs.statSync(f).size; ps.push(await err(`${dir}/${k}.png`, f)); }-console.log(line + Math.round(tot/1024) + "KB psnr min/avg " + Math.min(...ps).toFixed(2) + "/" + (ps.reduce((a,b)=>a+b)/ps.length).toFixed(2));-for (const [q, eff] of qs.map((s) => s.split(":").map(Number))) {- tot = 0; ps = [];- for (const k of names) {- const buf = await sharp(`${dir}/${k}.png`).avif({ quality: q, effort: eff, chromaSubsampling: "4:4:4" }).toBuffer();- fs.writeFileSync(`${dir}/${k}.q${q}.avif`, buf); tot += buf.length;- ps.push(await err(`${dir}/${k}.png`, `${dir}/${k}.q${q}.avif`));- }- console.log(`avif q${q} e${eff}: ` + Math.round(tot/1024) + "KB psnr min/avg " + Math.min(...ps).toFixed(2) + "/" + (ps.reduce((a,b)=>a+b)/ps.length).toFixed(2));-}