Repository navigation
新增哔哩哔哩 Index 翻译源及 2B/9B/35B 模型选择 - #4
Merged
Merged
Conversation
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现有翻译服务无法选择哔哩哔哩 Index。本 PR 增加 Index 翻译源及 2B、9B、35B 三档模型,保存后按所选模型请求;旧配置继续使用原来的服务,自动模式仍先查本地词典,再使用微软/腾讯。
改动
Index-Translate-2B、Index-Translate-9B、Index-Translate-35B-A3B。配置支持保存、回填、取消和重置;缺少IndexModel的旧配置补入 35B 初始值,不会自动启用 Index。原有翻译源和词典行为保持兼容。temperature=0和关闭思考参数,不发送 Authorization;读取choices[0].message.content。三档标识另见官方说明。zh-Hans/zh-Hant明确指定简体/繁體中文。保存设置或开始新操作时取消旧请求,取消及过期响应不会进入缓存或显示为当前译文。验证
本提交的 Windows CI 全部通过;fork 的 push 构建也已通过。
基于当前
main(45637d9246cdb25d539d6c7602888d5691cde71c)的独立分支,Windows x64/.NET Framework 构建通过。离线回归通过:剪贴板流程、原生窗口手势、非文本上下文、翻译源/DeepL/Index 模拟请求、隔离原生剪贴板、完整离线自测及真实选区辅助程序集成。词典使用现存固定版本数据,未在本机执行下载脚本。
Index 模拟测试覆盖三档参数、服务/模型/语言/原文缓存隔离、取消、过期结果、超时、429 退避及次数上限、错误响应、模型不一致、简繁提示词、旧配置迁移、三档保存回填、取消和保存失败回滚。检查了实际 WPF 设置页渲染。
2026-10-21 向官方接口逐档发送同一公开短句
The window closes automatically.,目标为zh-Hans。三档均在第一次请求返回 HTTP 200,响应模型标识分别与 2B、9B、35B 请求一致,译文均为“窗口会自动关闭。”。这是少量单次联调结果,不作性能、译文质量或持续可用性保证。未发送用户选区或私密资料。已在本机部署试用,用户反馈满意。PR 分支未包含原有两处本地剪贴板兼容补丁,也未提交用户配置、词典大文件、运行日志或本机路径。
验证范围
繁体中文、其他目标语言及限流/故障路径仅做离线验证;未进行长文本、批量请求、全部应用、DPI 或持续稳定性测试。真实服务可用性可能变化。CI 中的 Index HTTP 测试使用模拟响应,在线联调需显式使用
scripts/test-index.ps1 -Online。