lifan0127 / ai-research-assistant

Aria is Your AI Research Assistant Powered by GPT Large Language Models
GNU Affero General Public License v3.0
1.06k stars 57 forks source link

Not working in Zotero 7 #117

Open ricraftis opened 3 months ago

ricraftis commented 3 months ago

Adding a placeholder for this issue. I'm sure you are aware of it. I had to upgrade all my plugins to get them to work in Zot 7. Scite not working either for interest.

lifan0127 commented 3 months ago

Hi @ricraftis I have published a pre-release for Zotero 7 here: https://github.com/lifan0127/ai-research-assistant/releases/tag/0.7.0-z7

Please let me know if it works for you.

kvnptl commented 3 months ago

Hi, I have tried this pre-release with Zotero 7 but it is giving the error Model 'gpt-4-0613' is not available. I already have a ChatGPT Plus subscription.

By the way, do I also need to change the OpenAI API Base URL? By default, it is https://api.openai.com/v1

inspiredearth commented 3 months ago

Hi @ricraftis I have published a pre-release for Zotero 7 here: https://github.com/lifan0127/ai-research-assistant/releases/tag/0.7.0-z7

Please let me know if it works for you.

@lifan0127 - Thank you Li Fan for your work on this. So very much appreciated. I'll be testing out your pre-release. Shall post here any issues encountered.

inspiredearth commented 3 months ago

@lifan0127 - My first attempt at using Aria 0.7.07 gives this result:

Apologies for the inconvenience. Something has gone wrong within Aria. Please check the error stack for detailed information about the issue.

CleanShot 2024-08-15 at 14 21 36

The error stack contains:

{
  "message": "Item data not loaded and field 'title' not set for item 2/YQC8MVAI",
  "dataType": "itemData",
  "stack": "Zotero.Exception.UnloadedDataException@chrome://zotero/content/xpcom/error.js:159:16\nZotero.Item.prototype.getField@chrome://zotero/content/xpcom/data/item.js:289:11\nZotero_Item_prototype_getField@jar:file:/<local-profile-dir>/extensions/better-bibtex@iris-advies.com.xpi!/content/better-bibtex.js:142070:21\ntrampoline@jar:file:/<local-profile-dir>/extensions/better-bibtex@iris-advies.com.xpi!/content/better-bibtex.js:115412:74\nZotero.Item.prototype.getDisplayTitle@chrome://zotero/content/xpcom/data/item.js:882:36\nGd@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:169:1110\nGi@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:169:2010\n",
  "name": "UnloadedDataException"
}
inspiredearth commented 3 months ago

@lifan0127 By the way, it would be great to see newer OpenAI models supported. Most apps I am familiar with that have OpenAI API integration provide a dropdown list of all current models, as opposed to having a couple of hard-coded options such what's in Aria.

lifan0127 commented 3 months ago

Hi, I have tried this pre-release with Zotero 7 but it is giving the error Model 'gpt-4-0613' is not available. I already have a ChatGPT Plus subscription.

By the way, do I also need to change the OpenAI API Base URL? By default, it is https://api.openai.com/v1

Hi @kvnptl , please be aware that you need an OpenAI AI API account (https://platform.openai.com/) and possibly add some credits to your account. This is different from the ChatGPT subscription.

lifan0127 commented 3 months ago

@lifan0127 By the way, it would be great to see newer OpenAI models supported. Most apps I am familiar with that have OpenAI API integration provide a dropdown list of all current models, as opposed to having a couple of hard-coded options such what's in Aria.

Hi @inspiredearth , thanks for your suggestion. I need to look into if it is possible to dynamically populate the model list. Meanwhile, you can manually update the model name, see: https://github.com/lifan0127/ai-research-assistant/issues/85#issuecomment-2274191076

lifan0127 commented 3 months ago

@lifan0127 - My first attempt at using Aria 0.7.07 gives this result:

Apologies for the inconvenience. Something has gone wrong within Aria. Please check the error stack for detailed information about the issue.

CleanShot 2024-08-15 at 14 21 36

The error stack contains:

{
  "message": "Item data not loaded and field 'title' not set for item 2/YQC8MVAI",
  "dataType": "itemData",
  "stack": "Zotero.Exception.UnloadedDataException@chrome://zotero/content/xpcom/error.js:159:16\nZotero.Item.prototype.getField@chrome://zotero/content/xpcom/data/item.js:289:11\nZotero_Item_prototype_getField@jar:file:/<local-profile-dir>/extensions/better-bibtex@iris-advies.com.xpi!/content/better-bibtex.js:142070:21\ntrampoline@jar:file:/<local-profile-dir>/extensions/better-bibtex@iris-advies.com.xpi!/content/better-bibtex.js:115412:74\nZotero.Item.prototype.getDisplayTitle@chrome://zotero/content/xpcom/data/item.js:882:36\nGd@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:169:1110\nGi@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:169:2010\n",
  "name": "UnloadedDataException"
}

The aforementioned item (2/YQC8MVAI) doesn't have a title, which was not account for by Aria. Could you let me know what this item is? A PDF attachment, a note or something else?

fgsconsulting commented 1 month ago
Screenshot 2024-09-24 at 15 52 13

I unfortunately discovered ARIA's existence only hours after updating to Zotero 7. I'm hoping that this will be available with Zotero soon, I'm looking forward to trying it out!

thomjj824 commented 1 month ago

after activating API key, i have this error "The model gpt-4o does not exist or you do not have access to it.", i basically tried it with all models and still same error.

lifan0127 commented 1 month ago

Hi @fgsconsulting could you please check out this release for Zotero 7: https://github.com/lifan0127/ai-research-assistant/releases/tag/v0.7.4

Screenshot 2024-09-24 at 15 52 13

I unfortunately discovered ARIA's existence only hours after updating to Zotero 7. I'm hoping that this will be available with Zotero soon, I'm looking forward to trying it out!

lifan0127 commented 1 month ago

after activating API key, i have this error "The model gpt-4o does not exist or you do not have access to it.", i basically tried it with all models and still same error.

Hi @thomjj824 could you please confirm if you have a paid subscription for OpenAI? Thanks!

thomjj824 commented 1 month ago

@lifan0127 yes paid subscription

lifan0127 commented 1 month ago

@lifan0127 yes paid subscription

Could you please click on "show error stack" and share the error message here?

xh-pich commented 2 weeks ago

作者大大,你好,我才安装就出现这个错误代码,之前装过gpt,秘钥和api我也换了 屏幕截图 2024-11-06 151628

{
  "name": "Error",
  "message": "input values have 2 keys, you must specify an input key or pass only 1 key as input",
  "stack": "ip@jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:186:11166\nsaveContext@jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:186:12968\ninvoke@jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:224:3185\n"
}
lifan0127 commented 2 weeks ago

Hi @xh-pich may I ask which LLM model do you use? Sometimes the LLM output doesn't conform to the required format and can cause such error.

@xh-pich 您好,请问您使用的是哪一个LLM模型?有时如果模型输出的格式不对,就会产生这样的错误。

作者大大,你好,我才安装就出现这个错误代码,之前装过gpt,秘钥和api我也换了 屏幕截图 2024-11-06 151628

{ "name": "Error", "message": "input values have 2 keys, you must specify an input key or pass only 1 key as input", "stack": "ip@jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:186:11166\nsaveContext@jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:186:12968\ninvoke@jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:224:3185\n" }

xh-pich commented 2 weeks ago

嗨,请问您使用的是哪种 LLM 模型?有时 LLM 输出不符合所需的格式,并可能导致此类错误。

@xh-pich 您好,请问您使用的是哪一个LLM模型?有时如果模型输出的格式不对,就会产生这样的错误。

就是用的gpt-4o,在设置里面几个模型我也试过了,也是这个反应

lifan0127 commented 2 weeks ago

If you don't mind, please sharing the chat history through the feedback button and I will investigate further: https://github.com/lifan0127/ai-research-assistant?tab=readme-ov-file#feedback

如果您不介意,请将聊天记录通过反馈按钮分享给我,我会进一步研究:https://github.com/lifan0127/ai-research-assistant?tab=readme-ov-file#feedback

嗨,请问您使用的是哪种 LLM 模型?有时 LLM 输出不符合所需的格式,并可能导致此类错误。 @xh-pich 您好,请问您使用的是哪一个LLM模型?有时如果模型输出的格式不对,就会产生这样的错误。

就是用的gpt-4o,在设置里面几个模型我也试过了,也是这个反应

Chandler-Kluser commented 1 week ago

I have got a similiar issue here: image image Error Stack:

<pre>{
  "status": 404,
  "headers": {
    "alt-svc": "h3=\":443\"; ma=86400",
    "cf-cache-status": "DYNAMIC",
    "cf-ray": "8e07d4d63a44e2a3-GIG",
    "content-encoding": "br",
    "content-type": "application/json; charset=utf-8",
    "date": "Sun, 10 Nov 2024 17:41:05 GMT",
    "server": "cloudflare",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "vary": "Origin",
    "x-content-type-options": "nosniff",
    "x-firefox-http3": "h3",
    "x-request-id": "req_906c87671dca5e0b657b1e19f07a56c0"
  },
  "error": {
    "message": "The model `gpt-4-0613` does not exist or you do not have access to it.",
    "type": "invalid_request_error",
    "param": null,
    "code": "model_not_found"
  },
  "code": "model_not_found",
  "param": null,
  "type": "invalid_request_error",
  "attemptNumber": 1,
  "retriesLeft": 6,
  "name": "Error",
  "message": "404 The model `gpt-4-0613` does not exist or you do not have access to it.",
  "stack": "Ae@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:244:3146\nt@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:244:3211\nbu@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:244:4460\ngenerate@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:244:3725\nmakeStatusError@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:247:7509\nmakeRequest@jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/aria.js:247:8402\n"
}</pre>

Just to point, I have fully added my Premium OpenAI API Key in Settings the way related in instructions, but it is still not working.

I am using Zotero 7.0.9 with 0.7.5 ARIA AI Plugin