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