sttq.js 779 B

123456789101112131415161718192021222324
  1. // ==UserScript==
  2. // @name 实体提取
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description
  6. // @author lyyyyy
  7. // @match http://127.0.0.1:17860/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=0.1
  9. // @run-at document-idle
  10. // @grant none
  11. // ==/UserScript==
  12. func.push({
  13. name: "实体提取",
  14. question: async () => {
  15. let Q = app.question
  16. app.chat = [{ "role": "user", "content": "提取下列语句中的关键词,并用json返回:科普之路是不是任重而道远?" },
  17. { "role": "AI", "content": '["科普","道路","任重","道远"]' }]
  18. lsdh(true)//打开历史对话
  19. resp = await send("提取下列语句中的关键词:" + Q)
  20. },
  21. })
粤ICP备19079148号