yiyan-browser-agent 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/browser.js +5 -1
package/package.json
CHANGED
package/src/browser.js
CHANGED
|
@@ -391,6 +391,10 @@ class YiyanBrowser {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
const directSelectors = [
|
|
394
|
+
// Yiyan specific: answer text container (highest priority)
|
|
395
|
+
'#answer_text_id',
|
|
396
|
+
'[id="answer_text_id"]',
|
|
397
|
+
// Generic selectors
|
|
394
398
|
'[class*="answer"]',
|
|
395
399
|
'[class*="response"]',
|
|
396
400
|
'[class*="message"][class*="content"]',
|
|
@@ -515,7 +519,7 @@ class YiyanBrowser {
|
|
|
515
519
|
}
|
|
516
520
|
|
|
517
521
|
// Remove everything after regenerate/suggestion markers (Yiyan's UI elements)
|
|
518
|
-
const cutMarkers = ['重新生成', '重新生成的', '换个回答', '输出更详细的'];
|
|
522
|
+
const cutMarkers = ['重新生成', '重新生成的', '换个回答', '输出更详细的', '再多提供'];
|
|
519
523
|
for (const marker of cutMarkers) {
|
|
520
524
|
const cutIndex = text.indexOf(marker);
|
|
521
525
|
if (cutIndex !== -1) {
|