Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
@@ -563,8 +563,6 @@ class GrokApiClient {
|
|
563 |
const search = request.model === 'grok-2-search' || request.model === 'grok-3-search';
|
564 |
|
565 |
// 移除<details>
|
566 |
-
<summary>💭 <b>思考过程 (点击展开)</b></summary>
|
567 |
-
标签及其内容和base64图片
|
568 |
const removeThinkTags = (text) => {
|
569 |
text = text.replace(/<think>[\s\S]*?<\/think>/g, '').trim();
|
570 |
text = text.replace(/!$$image$$$data:.*?base64,.*?$/g, '[图片]');
|
|
|
563 |
const search = request.model === 'grok-2-search' || request.model === 'grok-3-search';
|
564 |
|
565 |
// 移除<details>
|
|
|
|
|
566 |
const removeThinkTags = (text) => {
|
567 |
text = text.replace(/<think>[\s\S]*?<\/think>/g, '').trim();
|
568 |
text = text.replace(/!$$image$$$data:.*?base64,.*?$/g, '[图片]');
|