Spaces:
Paused
Paused
Update index.js
Browse files562 unmodified lines563564565566567568569570562 unmodified linesconst search = request.model === 'grok-2-search' || request.model === 'grok-3-search';// 移除<details><summary>💭 <b>思考过程 (点击展开)</b></summary>标签及其内容和base64图片const removeThinkTags = (text) => {text = text.replace(/<think>[\s\S]*?<\/think>/g, '').trim();text = text.replace(/!$$image$$$data:.*?base64,.*?$/g, '[图片]');562 unmodified lines563564565566567568562 unmodified linesconst search = request.model === 'grok-2-search' || request.model === 'grok-3-search';// 移除<details>const removeThinkTags = (text) => {text = text.replace(/<think>[\s\S]*?<\/think>/g, '').trim();text = text.replace(/!$$image$$$data:.*?base64,.*?$/g, '[图片]');
index.js-2