fix: fix the formating error on qwen3 (#5899)

fix(ModelMessageService): fix the formating error on qwen3
This commit is contained in:
jwcrystal
2025-05-12 14:55:23 +08:00
committed by GitHub
parent 698096e523
commit 84b205cac2

View File

@@ -57,7 +57,7 @@ export function processPostsuffixQwen3Model(
} else {
// 思考模式未启用,添加 postsuffix
if (!content.endsWith(postsuffix)) {
return content + postsuffix
return content + ' ' + postsuffix
}
}
} else if (Array.isArray(content)) {