Skip to content

fix(llm) & feat(i18n): raise LLM timeout and complete popup i18n - #48

Merged
ZeroTang05 merged 2 commits into
mainfrom
dev
Dec 3, 2026
Merged

ZeroTang05 merged 2 commits into
mainfrom
dev

Conversation

@ZeroTang05

Copy link
Copy Markdown
Owner

变更概要

包含以下两项改进(均基于已合入 main 的 v2.0.1):

  1. 修复 LLM 请求超时与多余 Cookie 携带 (1e9d72d)
    • 将 OpenAI、Anthropic、Custom Fetch 与 System One 客户端超时从 30s 调整为 120s,解决 MiniMax-M3.1-Flash 等强制思考模型处理长视频字幕时在 30 秒被客户端提前中止的问题。
    • 统一使用 credentials: 'omit',避免向模型 API 附带浏览器中同域站点的 Cookie。
  2. 更新中英文语言包并接入弹窗 i18n
    • 更新 _locales/zh_CN/messages.json 与 _locales/en/messages.json 中的 extensionDescription(涵盖广告检测跳过、AI 文案标注与 AI 评论屏蔽,且控制在 132 字符商店限制内),并清理废弃无用条目。
    • 新增 src/utils/i18n.ts,为 src/popup.html 与 src/popup.ts 完整接入 chrome.i18n 多语言渲染。
    • 新增 src/utils/i18n.test.ts 自动校验语言包键一致性、字符上限与弹窗键覆盖。

验证记录

  • 根目录 Vitest:11 个测试文件、154 条测试全部通过
  • 多平台扩展构建:npm run build 已重新打包 Chrome 与 Firefox v2.0.1 产物

@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
videoadguard-docs Ready Ready Preview Dec 3, 2026 6:02am UTC

@ZeroTang05
ZeroTang05 merged commit 6a7a12b into main Dec 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant