MuiseDestiny / zotero-gpt

GPT Meet Zotero.
GNU Affero General Public License v3.0
5.24k stars 215 forks source link

zotero GPT命令标签运行出错 #349

Open qiushouzhao opened 3 months ago

qiushouzhao commented 3 months ago

Has this issue been reported before?

Operating Environment

Current Configuration Information

api https://api.chatanywhere.tech/ secretKey sk-...9RFa model gpt-3.5-turbo temperature 1.0

Issue Details

image 如果点击确定后继续运行,运行结果如下:

image

之前命令标签是成功使用过的。GPT和KIMI我都用过了,没成功,说把const改成var,也不行。现在只能使用askPDF,其他命令标签都报错这个。 其中的命令标签之一:

摘要批量转综述[color=#7175FF][trigger=]

下面是几篇论文的标题、发表日期、作者、和摘要:

const ztoolkit = Zotero.ZoteroGPT.data.ztoolkit let getSelection = () => { return ZoteroPane.getSelectedItems().map( (doc, index) => [${ index + 1}] TITLE:${doc.getField("title")} PUBLISH DATE:${doc.getField("date")} AUTHOR:${doc.getCreators().map((v) => v.firstName + " " + v.lastName).join("; ")} ABSTRACT:${doc.getField("abstractNote")} ).join("\n\n") } console.log(getSelection()) getSelection() 现在我想引用它写一篇文献综述。请你把这些文献分类,每一类对应综述的一个段落。请你帮我总结每一篇论文的工作,每一篇论文的总结要求50字左右。然后请你把论文的总结,按照观点,组织成一个或多个段落。你只需要输出组成好的段落,不要输出每一篇的总结。作者没有告诉你,你可以用XX代替。

Reply in Zotero.locale

Additional Information

image image

如果把代码复制进去,用askPDF运行,报错这个。

Idealfiller commented 2 months ago

插件卸载重装试试,我升级版本也出现了这个问题,重装插件就好了

Karl-Rui commented 2 months ago

微信图片_20240904105408 请问以下使用askpdf中出现这个问题是因为没有pdf没有被选中么? 我先点击了文本库的论文再使用askpdf还是会出现这个,请问一下为什么呢?

sweetiepeach commented 2 months ago

微信图片_20240904105408 请问以下使用askpdf中出现这个问题是因为没有pdf没有被选中么? 我先点击了文本库的论文再使用askpdf还是会出现这个,请问一下为什么呢?

我也出现了这个问题,插件版本1.2.0

qiushouzhao commented 2 months ago

插件卸载重装试试,我升级版本也出现了这个问题,重装插件就好了

好的,我试试,谢谢

zhaomaevepeng commented 2 months ago

我重装了也没有好

lxy-ddd commented 1 month ago

Zotero.ZoteroGPT.utils is undefined

seifer08ms commented 1 week ago

Zotero.ZoteroGPT.utils is undefined

+1

huachuman commented 6 days ago

Zotero.ZoteroGPT.utils is undefined

Yes exactly same here

seifer08ms commented 6 days ago

Zotero.ZoteroGPT.utils is undefined

I seem to understand now, this might be an issue with the plugin not cleaning up the old code during upgrades and uninstallations. Just rewrite the command tags according to the latest code. It seems that Zotero.ZoteroGPT.utils is not supported now.

huachuman commented 5 days ago

this might be an issue with the plugin not cleaning up the old code during upgrades and uninstallations.

That's very interesting. I bet this is causing more issues than just this.

Any way to clean up the old installation?

seifer08ms commented 5 days ago

this might be an issue with the plugin not cleaning up the old code during upgrades and uninstallations.

That's very interesting. I bet this is causing more issues than just this.

Any way to clean up the old installation?

I dont know how to clean the old tags. And built-in tags can't be deleted. I just updated the code of tags.