[Feature Request] 希望为 qwen-mt 模型提供原生的术语干预(terms)支持
Author: Atomic1212Created Sep 19, 2026Updated Sep 19, 2026
目前插件在使用 qwen-mt 系列模型(如 qwen-mt-flash)进行翻译时 没有办法使用 translation_options.terms(术语干预/词汇表)
使用“自定义请求体”功能,手动传入
{
"translation_options": {
"terms": [
{
"source": "Token",
"target": "Token"
}
]
}
}会因为代码中的
// 顶层浅合并,用户字段优先;返回新对象以避免修改原始 payload。
export function mergeCustomBody<T extends Record<string, unknown>>(payload: T, raw?: unknown): T {
const customBody = parseCustomBody(raw);
if (customBody === undefined) {
console.warn('[FluentRead] 自定义请求体必须是合法的 JSON 对象,已忽略');
return payload;
}
return {...payload, ...customBody};
}导致 translation_options 中的 source_lang & target_lang 丢失
{
"translation_options": {
"source_lang": "auto",
"target_lang": "English"
}
}Source: Bistutu/FluentRead