We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b898fc0 commit 354a179Copy full SHA for 354a179
1 file changed
src/lib/utils/index.ts
@@ -103,6 +103,7 @@ function isChineseChar(char: string): boolean {
103
// Tackle "Model output issue not following the standard Markdown/LaTeX format" in Chinese.
104
function processChineseContent(content: string): string {
105
// This function is used to process the response content before the response content is rendered.
106
+ if (!/[\u4e00-\u9fa5]/.test(content)) return content;
107
const lines = content.split('\n');
108
const processedLines = lines.map((line) => {
109
if (/[\u4e00-\u9fa5]/.test(line)) {
0 commit comments