lifan0127 / ai-research-assistant

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

"Something has gone wrong within Aria." #62

Open Earth-2 opened 7 months ago

Earth-2 commented 7 months ago

I receive the following error every time I try to ask ARIA a question. I have copied an API key from OpenAI, with which I have an account. What am I missing?

Aria v0.5.4 Zotero v6.0.30 in Win11

{
  "message": "Request failed with status code 404 and body {\n    \"error\": {\n        \"message\": \"The model `gpt-4-0613` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.\",\n        \"type\": \"invalid_request_error\",\n        \"param\": null,\n        \"code\": \"model_not_found\"\n    }\n}\n",
  "name": "Error",
  "fileName": "resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/keega/AppData/Roaming/Zotero/Zotero/Profiles/6x0fdmrn.default/extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file:///C:/Users/keega/AppData/Roaming/Zotero/Zotero/Profiles/6x0fdmrn.default/extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js",
  "lineNumber": 47394,
  "columnNumber": 18,
  "stack": "createError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:47394:18\nsettle@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:47160:12\nfetchAdapter/<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:47271:121\nfetchAdapter@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:47267:10\n",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [],
    "transformResponse": [],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/json",
      "User-Agent": "OpenAI/NodeJS/3.3.0",
      "Authorization": "Bearer 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"
    },
    "method": "post",
    "data": "{\"model\":\"gpt-4-0613\",\"temperature\":0,\"top_p\":1,\"frequency_penalty\":0,\"presence_penalty\":0,\"n\":1,\"stream\":false,\"functions\":[{\"name\":\"routing\",\"description\":\"Define an action to route a user's request. Output the action name in the \\\"action\\\" field and the payload for the action in the \\\"payload\\\" field.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"action\":{\"type\":\"string\",\"description\":\"The action to take, either routing to a specific route or asking for clarification.\",\"enum\":[\"routing\",\"clarification\"]},\"payload\":{\"oneOf\":[{\"type\":\"object\",\"properties\":{\"route\":{\"type\":\"string\",\"description\":\"The name of the executor to handle the request. Must be one of the following:\\n- search: For searching user's Zotero library related to a specific topic. Use this route when a user expects to see a list of search results.\\n- qa: For Q&A and other related requests based on user's Zotero library. Use this route when a user expects to see a single answer or summary.\",\"enum\":[\"search\",\"qa\"]},\"input\":{\"type\":\"string\",\"description\":\"A potentially modified version of the original user message for the route.\"},\"states\":{\"type\":\"object\",\"description\":\"A subset of the application states relevant to the user message.\",\"properties\":{\"creators\":{\"type\":\"array\",\"description\":\"Creators (authors, editors) of the items in the Zotero library, useful for refining search scope.\",\"items\":{\"type\":\"string\"}},\"tags\":{\"type\":\"array\",\"description\":\"Tags of the items in the Zotero library, useful for refining search scope.\",\"items\":{\"type\":\"string\"}},\"items\":{\"type\":\"array\",\"description\":\"Zotero Item IDs, useful as sources for Q&A.\",\"items\":{\"type\":\"number\"}},\"collections\":{\"type\":\"array\",\"description\":\"Zotero Collection IDs, useful for refining search scope.\",\"items\":{\"type\":\"number\"}}}}},\"required\":[\"route\",\"input\"]},{\"type\":\"object\",\"properties\":{\"message\":{\"type\":\"string\",\"description\":\"The message to ask for user clarification or missing information.\"}},\"required\":[\"message\"]}]}},\"required\":[\"action\",\"payload\"]}}],\"function_call\":{\"name\":\"routing\"},\"messages\":[{\"role\":\"system\",\"content\":\"You are an AI assistant for Zotero, a reference management software.\\nYour job is to analyze a user's request, in the context of the application states, and choose the appropriate follow-up actions.\\n\\nRequirements:\\n- You should interpret the user request in the context of the application states, which include a set of authors, tags, items and collections selected by the user.\\n- When you cannot confidently determine the user's intention, the action should be \\\"clarification\\\" and the payload should contain a message to politely express your doubt. The goal is have the user provide more information through conversation.\\n- After you have gathered enough information to understood the user's intention, the action should be \\\"routing\\\" and the payload should contain the name of the route to handle the request, the input for the route, and optionally, the relevant application states. The name of the route must be one of the values provided to you. The input could be a potentially modified version of the original user message.\"},{\"role\":\"user\",\"content\":\"Application States:\\n\\n\\nUser Input: Hello?\"}]}",
    "url": "https://api.openai.com/v1/chat/completions"
  },
  "status": 404
}
lifan0127 commented 7 months ago

Hello @Earth-2 Thanks for reaching out. There might be several reasons why you cannot access the gpt-4-0613 model. If you visit https://platform.openai.com/playground?mode=chat and open the model selection dropdown menu (red circled), you can verify your moel access.

image

afonsoguerra commented 7 months ago

Hi, I'm getting a similar error but with a different message.

{
  "name": "Error",
  "message": "input values have 2 keys, you must specify an input key or pass only 1 key as input",
  "stack": "getInputValue@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:13780:15\nsaveContext@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:59055:43\ncall@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:49620:17\n"
}
lifan0127 commented 7 months ago

Hi @afonsoguerra that is likely a different error. Could you please share more context, like the messages leading up to this error?

If you like, you may also submit the information through the feedback feature: https://github.com/lifan0127/ai-research-assistant#feedback

Thank you!

Auralsculpture commented 6 months ago

I have similar issue - The error says I dont have access to get 4 and the Playground says 3.5 turbo, but I pay for an account with GPT4 .. Screenshot 2023-12-03 at 7 46 46 pm

{
  "status": 404,
  "headers": {},
  "error": {
    "message": "The model `gpt-4-0613` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.",
    "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. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.",
  "stack": "@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:830:19\n_APIError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38798:9\nnode_modules/openai/error.mjs/NotFoundError<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38891:15\ngenerate@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:38835:18\nmakeStatusError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:39618:16\nmakeRequest@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:39658:24\n"
}
Auralsculpture commented 6 months ago

I have similar issue - The error says I dont have access to get 4 and the Playground says 3.5 turbo, but I pay for an account with GPT4 .. !

According to other sources, the issue is that GPT4 access in the API requires a prepayment

lifan0127 commented 6 months ago

I have similar issue - The error says I dont have access to get 4 and the Playground says 3.5 turbo, but I pay for an account with GPT4 .. !

According to other sources, the issue is that GPT4 access in the API requires a prepayment

Hi @Auralsculpture, The ChatGPT Plus subscription doesn't provide API access to GPT-4. You will need to set up payment under https://platform.openai.com/account/billing/overview

lifan0127 commented 6 months ago

The error message is more explicit now in terms of GPT-4 access.

https://github.com/lifan0127/ai-research-assistant/releases/tag/0.6.5

image

youthcould commented 1 month ago

Hi, I'm getting a similar error but with a different message.

{ "name": "Error", "message": "input values have 2 keys, you must specify an input key or pass only 1 key as input", "stack": "getInputValue@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:13780:15\nsaveContext@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:59055:43\ncall@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:49620:17\n" }

Hello, I have the same error on the latest A.R.I.A. on zotero 7. Is there any solution now? thanks

lifan0127 commented 1 month ago

Hi, I'm getting a similar error but with a different message. { "name": "Error", "message": "input values have 2 keys, you must specify an input key or pass only 1 key as input", "stack": "getInputValue@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:13780:15\nsaveContext@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:59055:43\ncall@resource://gre/modules/addons/XPIProvider.jsm -> jar:file://extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file://extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:49620:17\n" }

Hello, I have the same error on the latest A.R.I.A. on zotero 7. Is there any solution now? thanks

Hi @youthcould this is likely a different error. If you could share your chat history via the feedback buttons, I am happy to troubleshoot further.

11930958 commented 1 month ago

Hello @Earth-2 Thanks for reaching out. There might be several reasons why you cannot access the gpt-4-0613 model. If you visit https://platform.openai.com/playground?mode=chat and open the model selection dropdown menu (red circled), you can verify your moel access.

image

image I have listed the ...1106 model but even then have error as given below. image