lifan0127 / ai-research-assistant

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

Not working in Zotero 7 #117

Open ricraftis opened 4 weeks ago

ricraftis commented 4 weeks 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 4 weeks 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 4 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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?